doctl icon indicating copy to clipboard operation
doctl copied to clipboard

When switching to or creating a new auth context, all previously stored contexts are lcased

Open amineo opened this issue 5 years ago • 1 comments

If you doctl auth init --context Dog it is initially stored with case sensitivity. However, If you switch to another context doctl auth switch default or doctl auth init --context Cat all the auth-contexts stored in ~/.config/doctl/config.yaml become lcased.

The problem is when you try to switch back to Dog it is no longer authorized because the stored context name has changed to dog.

doctl version 1.13.0-release

amineo avatar Feb 28 '19 16:02 amineo

Thanks for reporting this. This seems to be related to how the config package, viper, handles exporting and importing YAML files: https://github.com/spf13/viper/pull/635

We might have to wait until the PR is merged upstream

kamaln7 avatar Apr 02 '19 19:04 kamaln7