Enable occ cloud region for example

Change-Id: I4f6fb7840b684e024ceca37bc5b7e2c858574665
This commit is contained in:
TerryHowe
2015-05-17 08:46:22 -06:00
committed by Terry Howe
parent 839c9e3c30
commit 0fa0d792bf

View File

@@ -30,6 +30,7 @@ from openstack import connection
def make_connection(opts):
occ = os_client_config.OpenStackConfig()
cloud = occ.get_one_cloud(opts.cloud, opts)
opts.user_preferences.set_region(opts.user_preferences.ALL, cloud.region)
auth = cloud.config['auth']
if 'insecure' in cloud.config:
auth['verify'] = cloud.config['insecure']