Commit 00650761 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

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: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
parent 89d11332
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment