mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #29178 from whytewolf/glance_keystone_profile_fix
Profile not being passed to keystone.endpoint_get in _auth. so if a p…
This commit is contained in:
commit
7775d65089
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ def _auth(profile=None, api_version=2, **connection_args):
|
|||
admin_token = get('token')
|
||||
region = get('region')
|
||||
ks_endpoint = get('endpoint', 'http://127.0.0.1:9292/')
|
||||
g_endpoint_url = __salt__['keystone.endpoint_get']('glance')
|
||||
g_endpoint_url = __salt__['keystone.endpoint_get']('glance', profile)
|
||||
# The trailing 'v2' causes URLs like thise one:
|
||||
# http://127.0.0.1:9292/v2/v1/images
|
||||
g_endpoint_url = re.sub('/v2', '', g_endpoint_url['internalurl'])
|
||||
|
|
Loading…
Add table
Reference in a new issue