Change example for preferences

Change-Id: I9425ea7da6d5da0b5640dbb76c890785b35badd3
This commit is contained in:
Terry Howe 2015-05-20 10:59:55 -07:00
parent 7fc1888d19
commit ae45a0726c

View File

@ -30,7 +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)
opts.preferences.set_region(opts.preferences.ALL, cloud.region)
auth = cloud.config['auth']
if 'insecure' in cloud.config:
auth['verify'] = cloud.config['insecure']