pulumi/pkg
Matt Ellis 94d11884f8 Fix login/logout issue against non api.pulumi.com clouds
Pat ran into a weird error when trying to do some development agains
the testing cloud:

```
$ pulumi logout
$ pulumi login --cloud-url [test-cloud-url]
Logged into [test-cloud-url]
$ pulumi stack ls
Enter your Pulumi access token from https://pulumi.com/account:
```

In his case, we did not have `current` set in our credentials.json
file (likely due to him calling `pulumi logout` at some point) but we
did have stored credentials for that cloud. When he logged in the CLI
noticed we could reuse the stored credentials but did not update the
the current setting to set the current cloud.

While investigating, I also noticed that `logout` did not always do
the right thing when you were logged into a different backend than
pulumi.com
2018-04-27 15:41:50 -07:00
..
apitype Add deployment version fields to more types. 2018-04-20 14:36:15 -07:00
backend Fix login/logout issue against non api.pulumi.com clouds 2018-04-27 15:41:50 -07:00
diag Add a new tree-view form for the progress view. (#1260) 2018-04-24 11:13:22 -07:00
encoding Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
engine Snapshot management overhaul and refactor (#1273) 2018-04-25 17:20:08 -07:00
graph Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
operations Don't cache AWS sessions with different credentials 2018-04-09 16:57:27 -07:00
resource Snapshot management overhaul and refactor (#1273) 2018-04-25 17:20:08 -07:00
testing Add a hidden --no-interactive flag so that we can reduce interactive noise when running jenkins. (#1262) 2018-04-24 14:23:08 -07:00
tokens Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
tools Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
util Only show emojis on macOS 2018-04-26 18:28:07 -07:00
version Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
workspace Introduce backend.StackReference 2018-04-18 04:54:02 -07:00