Skip to content

Commit 4dd1a6c

Browse files
zinuzoidMatthew Fisher
authored andcommitted
fix(timeout-debug-msg): unresolved variable (#1148)
1 parent 48dc617 commit 4dd1a6c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rootfs/scheduler/resources/deployment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def wait_until_ready(self, namespace, name, **kwargs):
339339
if additional_timeout:
340340
timeout += additional_timeout
341341
# add 10 minutes to timeout to allow a pull image operation to finish
342-
self.log(namespace, 'Kubernetes has been pulling the image for {}s'.format(seconds)) # noqa
342+
self.log(namespace, 'Kubernetes has been pulling the image for {}s'.format(waited)) # noqa
343343
self.log(namespace, 'Increasing timeout by {}s to allow a pull image operation to finish for pods'.format(additional_timeout)) # noqa
344344

345345
self.log(namespace, "waited {}s and {} pods are in service".format(waited, availablePods)) # noqa

rootfs/scheduler/resources/pod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def wait_until_ready(self, namespace, containers, labels, desired, timeout): #
651651
if additional_timeout:
652652
timeout += additional_timeout
653653
# add 10 minutes to timeout to allow a pull image operation to finish
654-
self.log(namespace, 'Kubernetes has been pulling the image for {}s'.format(seconds)) # noqa
654+
self.log(namespace, 'Kubernetes has been pulling the image for {}s'.format(waited)) # noqa
655655
self.log(namespace, 'Increasing timeout by {}s to allow a pull image operation to finish for pods'.format(additional_timeout)) # noqa
656656

657657
count = 0 # ready pods

0 commit comments

Comments
 (0)