auth dict different between file config and env vars config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-client-config |
New
|
Undecided
|
Unassigned |
Bug Description
This code
import pprint
import os_client_config
occ = os_client_
cloud_config = occ.get_
print(
pprint.
occ = os_client_
cloud_config = occ.get_
print(
pprint.
produces output like the following
test_cloud
{'api_timeout': None,
'auth': {
'auth_url': 'http://
'password': 'devstack',
'username': 'demo'},
'auth_type': 'password',
'region_name': 'RegionOne',
...
'volume_
envvars
{'api_timeout': None,
'auth': {
'auth_type': 'password',
'auth_url': 'http://
'password': 'devstack',
'username': 'demo',
'region_name': 'RegionOne',
...
'volume_
Note how the auth dict between the file config taken from 'test_cloud' is different from the env vars config taken from 'envvars'.
This makes it impossible to have code that uses occ to treat config taken from a file or from env vars the same.