Skip to content

Commit 92f7a98

Browse files
committed
Handle missing entries in service catalogue
1 parent 3556ddf commit 92f7a98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

capi_janitor/openstack/openstack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ async def __aenter__(self):
205205
ep["url"]
206206
for ep in entry["endpoints"]
207207
if (
208-
ep["interface"] == self._interface
209-
and (not self._region or ep["region"] == self._region)
208+
ep.get("interface") == self._interface
209+
and (not self._region or ep.get("region") == self._region)
210210
)
211211
)
212212
for entry in response.json()["catalog"]

0 commit comments

Comments
 (0)