Skip to content

Commit 2e31d16

Browse files
committed
Add region reference to ironic client call to solve site cross-over issues.
1 parent f83b76f commit 2e31d16

File tree

1 file changed

+4
-1
lines changed
  • python/understack-workflows/understack_workflows/openstack

1 file changed

+4
-1
lines changed

python/understack-workflows/understack_workflows/openstack/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ def get_ironic_client(cloud=None, region_name="") -> IronicClient: # type: igno
4444
"""Returns our Ironic Client wrapper configured from our clouds.yaml."""
4545
cloud_region = _get_os_cloud_region(cloud, region_name)
4646
client = _get_ironic_client(
47-
"1", session=cloud_region.get_session(), os_ironic_api_version="latest"
47+
api_version="1",
48+
session=cloud_region.get_session(),
49+
os_ironic_api_version="latest",
50+
region_name=cloud_region.region_name,
4851
)
4952
client.negotiate_api_version()
5053
return client

0 commit comments

Comments
 (0)