Skip to content

fix: use environment credentials when OS_CLOUD is unset - #131

Open
hanasuke wants to merge 1 commit into
nttcom:masterfrom
hanasuke:fix/env-auth-without-os-cloud
Open

hanasuke wants to merge 1 commit into
nttcom:masterfrom
hanasuke:fix/env-auth-without-os-cloud

Conversation

@hanasuke

@hanasuke hanasuke commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fix cloud configuration selection when OS_CLOUD is unset. The CLI now passes None instead of an empty string, allowing the environment-based configuration to be selected.

Background

Previously, OS_PROJECT_ID could be set but would not reach authentication. Scoped commands such as ecl compute server list then failed with Missing parameter(s): Set a scope.

Verification

Confirmed that OS_PROJECT_ID reaches the authentication settings and passes scope validation when OS_CLOUD is unset. The full API call could not be verified because the identity endpoint was unreachable from the test environment.

Execution test

Before applying this patch

$ printenv OS_PROJECT_ID
805925d589534fe3af5a2b05dcc8c463

$ printenv OS_CLOUD

$ ecl compute server list
Missing parameter(s):
Set a scope, such as a project or domain, set a project scope with --os-project-name, OS_PROJECT_NAME or auth.project_name, set a domain scope with --os-domain-name, OS_DOMAIN_NAME or auth.domain_name

After applying this patch

$ printenv OS_PROJECT_ID
805925d589534fe3af5a2b05dcc8c463

$ printenv OS_CLOUD

$ ecl compute server list
+--------------------------------------+------------------------------+---------+-----------------------------------------------------------+
| ID                                   | Name                         | Status  | Networks                                                  |
+--------------------------------------+------------------------------+---------+-----------------------------------------------------------+
:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants