pulumi/cmd
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
..
cancel.go Fix a couple of typos. 2018-04-20 11:09:54 -07:00
config.go Remove some obsolete flags from pulumi config rm 2018-04-25 14:25:11 -07:00
config_test.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
debug_cmds.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
destroy.go 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
history.go Introduce backend.StackReference 2018-04-18 04:54:02 -07:00
init.go Remove the need to pulumi init for the local backend 2018-04-18 04:53:49 -07:00
login.go Don't mention PPC unless needed in the CLI 2018-04-23 16:50:48 -04:00
logout.go Fix login/logout issue against non api.pulumi.com clouds 2018-04-27 15:41:50 -07:00
logs.go Minor CLI improvements 2018-04-25 16:52:31 -07:00
logs_test.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
new.go Extract a Pulumi API client. 2018-03-21 16:45:54 -07:00
plugin.go Snapshot management overhaul and refactor (#1273) 2018-04-25 17:20:08 -07:00
plugin_install.go Add a --verbose flag to plugin install (#1160) 2018-04-11 17:51:14 -07:00
plugin_ls.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
plugin_rm.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
preview.go Implement a refresh command 2018-04-18 10:57:16 -07:00
pulumi.go Don't mention PPC unless needed in the CLI 2018-04-23 16:50:48 -04:00
refresh.go 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
stack.go Don't mention PPC unless needed in the CLI 2018-04-23 16:50:48 -04:00
stack_export.go Run tests against managed stacks backend instead of FnF (#1092) 2018-04-02 21:34:54 -07:00
stack_graph.go Spruce up the stack graph command: 2018-02-22 17:31:45 -08:00
stack_import.go Address code review feedback 2018-04-20 01:31:14 -04:00
stack_init.go Address code review feedback 2018-04-20 02:34:10 -04:00
stack_ls.go Add a URL column to stack ls. 2018-04-25 21:17:46 -07:00
stack_output.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
stack_output_test.go Adjust stack output formating in the CLI 2018-02-16 12:25:25 -08:00
stack_rm.go Address code review feedback 2018-04-20 01:31:14 -04:00
stack_select.go Address code review feedback 2018-04-20 02:34:10 -04:00
update.go 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
util.go Revert adding HEAD commit info to update env (#1257) 2018-04-23 14:01:28 -07:00
version.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00