Don't force a name for compute endpoint

This is optional and there should be a configuration option for it if we're about to force it.
This commit is contained in:
Johnny Bergström 2012-11-15 15:09:06 +01:00
parent e24002740f
commit 865400e089

View File

@ -83,9 +83,11 @@ def get_conn():
authinfo = {
'ex_force_auth_url': __opts__['OPENSTACK.identity_url'],
'ex_force_auth_version': '2.0_password',
'ex_force_service_name': 'Compute',
}
if 'OPENSTACK.compute_name' in __opts__:
authinfo['ex_force_service_name'] = __opts__['OPENSTACK.compute_name']
if 'OPENSTACK.compute_region' in __opts__:
authinfo['ex_force_service_region'] = __opts__['OPENSTACK.compute_region']