diff --git a/src/custodia/openshift/authz.py b/src/custodia/openshift/authz.py index 23a2ff4..bd0f026 100644 --- a/src/custodia/openshift/authz.py +++ b/src/custodia/openshift/authz.py @@ -65,7 +65,7 @@ def get_pods(self): def find_pod(self, data, containerid): for pod in data['items']: for status in pod[u'status'][u'containerStatuses']: - if status[u'containerID'] == containerid: + if u'containerID' in status and status[u'containerID'] == containerid: return pod def handle(self, request):