digitalocean / digitalocean/doctl

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

Open
#411 1 comment 0 reactions 0 assignees View on GitHub
Needs Investigation
Dominant language
Go
Stars
3.4k
Forks
496
Avg merge
1d 2h
Merged PRs (30d)
31

Description

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**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.