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:
Mike Place 2015-11-25 09:09:49 -07:00
commit 7775d65089

View file

@ -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'])