From a2c29834077d3ff3982406333fc3d5dfa2e9b79e Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Thu, 1 Feb 2018 15:44:18 -0500 Subject: [PATCH] Do not submit min-ready requests with min-ready 0 The min-ready engine didn't recognize a value of 0 properly and would continue submitting requests, even when disabled. Change-Id: I93bcfda409cd5ce16a85fa42a08561bc6034d938 --- nodepool/launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodepool/launcher.py b/nodepool/launcher.py index 98ac2f004..cfc2e4294 100755 --- a/nodepool/launcher.py +++ b/nodepool/launcher.py @@ -861,7 +861,7 @@ class NodePool(threading.Thread): if label.name not in needed_labels: continue min_ready = label.min_ready - if min_ready == -1: + if min_ready <= 0: continue # disabled # Calculate how many nodes of this type we need created