Skip to content

Commit

Permalink
Merge pull request #813 from porter-dev/0.4.2-cli-login-set-project
Browse files Browse the repository at this point in the history
[0.4.2] Use the `config.Token` to set project after `porter auth login --token ...`
  • Loading branch information
abelanger5 authored Jun 22, 2021
2 parents f063b6d + 1545a8b commit e0a26c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cmd/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func login() error {
config.SetToken(config.Token)
color.New(color.FgGreen).Println("Successfully logged in!")

projID, err := api.GetProjectIDFromToken(token)
projID, err := api.GetProjectIDFromToken(config.Token)

if err != nil {
return err
Expand Down

0 comments on commit e0a26c2

Please sign in to comment.