Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/kill-host-pods.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def post_filter_has_known_containers(pod, containers: list) -> bool:
Return true if any of the container IDs on the pod match the list of
containers passed on the second argument.
"""
for container in pod["status"]["containerStatuses"] or []:
for container in pod["status"].get("containerStatuses") or []:
try:
_, container_id = container["containerID"].split("containerd://", 2)
if container_id in containers:
Expand Down