mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-11-21 14:48:41 +00:00
Handle the cloud parameter as a dict in application_credential module
Closes-Bug: 2117712 Change-Id: I258f4f6f35ed00b1ac0d719f17e5704c1bfe22f8
This commit is contained in:
@@ -298,7 +298,11 @@ class IdentityApplicationCredentialModule(OpenStackModule):
|
||||
return creds
|
||||
|
||||
def _get_cloud_config(self, creds):
|
||||
cloud_region = openstack.config.OpenStackConfig().get_one(self.cloud)
|
||||
if isinstance(self.cloud, str):
|
||||
cloud_region = openstack.config.OpenStackConfig().get_one(self.cloud)
|
||||
# If the cloud parameter is not a string, try to send it to kwargs
|
||||
else:
|
||||
cloud_region = openstack.config.OpenStackConfig().get_one(**self.cloud)
|
||||
|
||||
conf = cloud_region.config
|
||||
cloud_config = copy.deepcopy(conf)
|
||||
|
||||
Reference in New Issue
Block a user