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
This commit is contained in:
Brant Knudson 2015-06-25 18:15:05 -05:00
parent c782781a4c
commit 68e6ae60e7

View File

@ -43,6 +43,9 @@ class UpdateCloudsYaml(object):
'project_name': args.os_project_name,
},
}
if args.os_identity_api_version == '3':
self._cloud_data['auth']['user_domain_id'] = 'default'
self._cloud_data['auth']['project_domain_id'] = 'default'
if args.os_cacert:
self._cloud_data['cacert'] = args.os_cacert