mirror of https://github.com/k3s-io/k3s
Much better
parent
d3ca7a0eb8
commit
c9688155f6
|
@ -1243,8 +1243,7 @@ def all_kube_system_pods_running():
|
|||
status = pod['status']['phase']
|
||||
# Evicted nodes should re-spawn
|
||||
if status != 'Running' and \
|
||||
('reason' in pod['status'].keys()
|
||||
and pod['status']['reason'] != 'Evicted'):
|
||||
pod['status'].get('reason', '') != 'Evicted':
|
||||
return False
|
||||
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue