https://pulumi.com logo
#general
Title
# general
c

colossal-room-15708

07/11/2019, 10:59 PM
I just tested
pulumi login --local
and wanted to switch back to using the service, but no matter how often I call
pulumi logout
, I'm always being logged back in to local
I found that
~/.pulumi/credentials.json
still shows
Copy code
{
  "current": "file://~",
  "accessTokens": {
    "file://~": ""
  }
}
after logout
Following the docs here https://www.pulumi.com/docs/reference/cli/pulumi_login/ that's at least a bit unexpected to me, thinking it would then revert back to the hosted service if I don't specify anything
w

white-balloon-205

07/11/2019, 11:02 PM
That is surprising. What do you see as output when you
pulumi login
?
Yes - for me -
pulumi logout
leads to removing the
current
. What cli version and OS are you on?
c

colossal-room-15708

07/11/2019, 11:04 PM
Copy code
pulumi login
Logged into david-thinkpad as david (file:///home/david)
Copy code
pulumi version  
v0.17.21
Ubuntu 19.04
deleting the
credentials.json
causes pulumi to prompt me again.
w

white-balloon-205

07/11/2019, 11:19 PM
Huh - weird. Just tried in
ubuntu
and couldn't reproduce. Could you open an issue with any details so we can investigate?
Copy code
root@9e3dd0052154:/# ~/.pulumi/bin/pulumi login
Manage your Pulumi stacks by logging in.
Run `pulumi login --help` for alternative login options.
Enter your access token from <https://app.pulumi.com/account/tokens>
    or hit <ENTER> to log in using your browser                   :
Logged into <http://pulumi.com|pulumi.com> as lukehoban (<https://app.pulumi.com/lukehoban>)

root@9e3dd0052154:/# ~/.pulumi/bin/pulumi logout

root@9e3dd0052154:/# ~/.pulumi/bin/pulumi login
Manage your Pulumi stacks by logging in.
Run `pulumi login --help` for alternative login options.
Enter your access token from <https://app.pulumi.com/account/tokens>
    or hit <ENTER> to log in using your browser                   :
Logged into <http://pulumi.com|pulumi.com> as lukehoban (<https://app.pulumi.com/lukehoban>)
c

colossal-room-15708

07/11/2019, 11:22 PM
today is weirdness day... AWS is acting up as well 😉 What other info would you like in the issue?
w

white-balloon-205

07/11/2019, 11:22 PM
Can't think of anything more than what you've shared here - but if you can think of anything else unique - feel free to add it.
👍 1
c

colossal-room-15708

07/12/2019, 12:06 AM
@white-balloon-205 created the issue here: https://github.com/pulumi/pulumi/issues/2926
👍 1
5 Views