Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't error if pod has no containerStatuses (canonical#4471)
In certain circumstances pod["status"] may not have a containerStatuses child property at all (e.g. if the pod is Pending and not yet scheduled to any node). Guard against this by using .get (returns None) instead of [] (raises KeyError).
- Loading branch information