From 0065076175223ede07893a29b71b17950b512648 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Wed, 27 Feb 2013 16:18:05 +0100 Subject: [PATCH] QA: Compare ipolicy directly with None If a value was set to numeric 0, the parameter wouldn't be passed to the command. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Bernardo Dal Seno <bdalseno@google.com> --- qa/qa_cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/qa_cluster.py b/qa/qa_cluster.py index ac3419ca0..e0559050e 100644 --- a/qa/qa_cluster.py +++ b/qa/qa_cluster.py @@ -183,7 +183,7 @@ def TestClusterInit(rapi_user, rapi_secret): for spec_val in ("min", "max", "std"): spec = qa_config.get("ispec_%s_%s" % (spec_type.replace("-", "_"), spec_val), None) - if spec: + if spec is not None: cmd.append("--specs-%s=%s=%d" % (spec_type, spec_val, spec)) if master.secondary: -- GitLab