We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32dc550 commit 5077b60Copy full SHA for 5077b60
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