Skip to content

Commit 1c6f929

Browse files
committed
Fix function arg
1 parent 544ad59 commit 1c6f929

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

capi_janitor/openstack/openstack.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,11 @@ def api_client(self, name, prefix = None):
218218
)
219219
return self._clients[name]
220220

221-
def _service_endpoint(self, endpoints):
221+
def _service_endpoint(self, catalog_entry):
222222
"""
223223
Filters the target cloud's catalog endpoints to find the relevant entry.
224224
"""
225+
endpoints = catalog_entry["endpoints"]
225226
iface_endpoints = [ep for ep in endpoints if ep["interface"] == self._interface]
226227
# If there's no region_name field in the clouds.yaml we use the first endpoint which
227228
# matches the interface name for consistent behaviour with the OpenStack CLI.

0 commit comments

Comments
 (0)