Commit 195f90bf authored by Agata Murawska's avatar Agata Murawska
Browse files

Empty ipolicy fix


Signed-off-by: default avatarAgata Murawska <agatamurawska@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent d6033c14
......@@ -12788,6 +12788,7 @@ class LUGroupAdd(LogicalUnit):
else:
self.op.diskparams = self.cfg.GetClusterInfo().diskparams
 
if self.op.ipolicy:
cluster = self.cfg.GetClusterInfo()
full_ipolicy = cluster.SimpleFillIPolicy(self.op.ipolicy)
objects.InstancePolicy.CheckParameterSyntax(full_ipolicy)
......
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