Merge "Handle the cloud parameter as a dict in application_credential module"

This commit is contained in:
Zuul
2026-10-22 11:50:11 +00:00
committed by Gerrit Code Review
+5 -1
View File
@@ -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)