Commit 45f8b50d authored by Iustin Pop's avatar Iustin Pop
Browse files

Remove extraneous check in policy creation



The values are already checked in CreateIPolicy, no need to manually
check them again.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 0ce212e5
......@@ -990,8 +990,6 @@ def SetClusterParams(opts, args):
ispecs_disk_count=opts.ispecs_disk_count,
ispecs_disk_size=opts.ispecs_disk_size,
ispecs_nic_count=opts.ispecs_nic_count)
for value in ipolicy.values():
utils.ForceDictType(value, constants.ISPECS_PARAMETER_TYPES)
mnh = opts.maintain_node_health
......
......@@ -194,9 +194,6 @@ def SetGroupParams(opts, args):
ispecs_nic_count=opts.ispecs_nic_count,
group_ipolicy=True,
allowed_values=[constants.VALUE_DEFAULT])
for key in ipolicy.keys():
utils.ForceDictType(ipolicy[key], constants.ISPECS_PARAMETER_TYPES,
allowed_values=[constants.VALUE_DEFAULT])
op = opcodes.OpGroupSetParams(group_name=args[0],
ndparams=opts.ndparams,
......
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