We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5c6b8b + 5077b60 commit 9531c15Copy full SHA for 9531c15
1 file changed
rootfs/scheduler/__init__.py
@@ -1463,7 +1463,10 @@ def _pod_pending_status(self, pod):
1463
1464
if 'waiting' in container['state']:
1465
reason = container['state']['waiting']['reason']
1466
- message = container['state']['waiting']['message']
+ message = ''
1467
+ # message is not always available
1468
+ if 'message' in container['state']['waiting']:
1469
+ message = container['state']['waiting']['message']
1470
if reason == 'ContainerCreating':
1471
# get the last event
1472
event = self._pod_events(pod).pop()
0 commit comments