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

Empty ipolicy fix

Signed-off-by: default avatarAgata Murawska <>
Reviewed-by: default avatarMichael Hanselmann <>
parent d6033c14
...@@ -12788,9 +12788,10 @@ class LUGroupAdd(LogicalUnit): ...@@ -12788,9 +12788,10 @@ class LUGroupAdd(LogicalUnit):
else: else:
self.op.diskparams = self.cfg.GetClusterInfo().diskparams self.op.diskparams = self.cfg.GetClusterInfo().diskparams
cluster = self.cfg.GetClusterInfo() if self.op.ipolicy:
full_ipolicy = cluster.SimpleFillIPolicy(self.op.ipolicy) cluster = self.cfg.GetClusterInfo()
objects.InstancePolicy.CheckParameterSyntax(full_ipolicy) full_ipolicy = cluster.SimpleFillIPolicy(self.op.ipolicy)
def BuildHooksEnv(self): def BuildHooksEnv(self):
"""Build hooks env. """Build hooks env.
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