Skip to content

Fly login without -n says that you are logging in to team provided, but keeps you in the team before #1723

@jama22

Description

@jama22

Bug Report

Logging to a team without providing the -n, --team-name= Team to authenticate with option, the user received a successful login message to the current logged in team.
Perhaps we can provide some indication that the login to the desired team has not been completed successfully.

~/w/concourse (master) $ fly -t dev login test-team
logging in to team 'main'

target saved
~/w/concourse (master) $ fly -t dev pipelines
name                   paused  public
main-pipeline-0        no      yes
main-pipeline-1        no      yes
main-pipeline-2        no      yes
main-pipeline-3        no      yes

~/w/concourse (master) $ fly -t dev login -n test-team
logging in to team 'test-team'

target saved
~/w/concourse (master) $ fly -t dev pipelines
name                   paused  public
test-team-pipeline-0  no      yes
test-team-pipeline-1  no      yes
test-team-pipeline-2  no      yes
test-team-pipeline-3  no      yes

~/w/concourse (master) $
  • Concourse version: 3.5.1
  • Deployment type (BOSH/Docker/binary): BOSH
  • Infrastructure/IaaS: GCP
  • Browser (if applicable): N/A
  • Did this used to work? No idea.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions