Skip to content

Commit 8522516

Browse files
committed
fixed application credentials usage
1 parent 4dba309 commit 8522516

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

simple_vm_client/openstack_connector/openstack_connector.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,11 @@ def load_env_config(self) -> None:
135135
if self.USE_APPLICATION_CREDENTIALS:
136136
logger.info("APPLICATION CREDENTIALS will be used!")
137137
try:
138-
self.APPLICATION_CREDENTIAL_ID = os.environ["APPLICATION_CREDENTIAL_ID"]
138+
self.APPLICATION_CREDENTIAL_ID = os.environ[
139+
"OS_APPLICATION_CREDENTIAL_ID"
140+
]
139141
self.APPLICATION_CREDENTIAL_SECRET = os.environ[
140-
"APPLICATION_CREDENTIAL_SECRET"
142+
"OS_APPLICATION_CREDENTIAL_SECRET"
141143
]
142144
except KeyError:
143145
logger.error(

0 commit comments

Comments
 (0)