Browse code

Support identity API v3 when generate clouds.yaml

When using IDENTITY_API_VERSION=3, the clouds.yaml must also set
auth/user_domain_id and project_domain_id.

Change-Id: If028f2935ea729276f40039a4003c07c08e91672

Brant Knudson authored on 2015/06/26 08:15:05
Showing 1 changed files
... ...
@@ -43,6 +43,9 @@ class UpdateCloudsYaml(object):
43 43
                 'project_name': args.os_project_name,
44 44
             },
45 45
         }
46
+        if args.os_identity_api_version == '3':
47
+            self._cloud_data['auth']['user_domain_id'] = 'default'
48
+            self._cloud_data['auth']['project_domain_id'] = 'default'
46 49
         if args.os_cacert:
47 50
             self._cloud_data['cacert'] = args.os_cacert
48 51