Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -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)
objects.InstancePolicy.CheckParameterSyntax(full_ipolicy)
   
def BuildHooksEnv(self): def BuildHooksEnv(self):
"""Build hooks env. """Build hooks env.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment