Commit e118deb1 authored by Bernardo Dal Seno's avatar Bernardo Dal Seno
Browse files

QA: Fix assertion



The assertion was always true because "all" was missing.
Signed-off-by: default avatarBernardo Dal Seno <bdalseno@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent 681f4f7b
......@@ -479,7 +479,8 @@ def _GetClusterIPolicy():
# Sanity checks
assert len(ret_specs) > 0
good = ("min" in d and "std" in d and "max" in d for d in ret_specs)
good = all("min" in d and "std" in d and "max" in d
for d in ret_specs.values())
assert good, "Missing item in specs: %s" % ret_specs
assert len(ret_policy) > 0
return (ret_policy, ret_specs)
......
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