From 0fa0d792bfc8ea22cd807b3b822edeb67a97943a Mon Sep 17 00:00:00 2001 From: TerryHowe Date: Sun, 17 May 2015 08:46:22 -0600 Subject: [PATCH] Enable occ cloud region for example Change-Id: I4f6fb7840b684e024ceca37bc5b7e2c858574665 --- examples/connection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/connection.py b/examples/connection.py index dfc417ed..c5f55903 100644 --- a/examples/connection.py +++ b/examples/connection.py @@ -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']