Skip to content
Snippets Groups Projects
Commit c17770c7 authored by Bernardo Dal Seno's avatar Bernardo Dal Seno
Browse files

Fix previous merge


A call to _CalculateGroupIPolicy wasn't refactored during the merge.

Signed-off-by: default avatarBernardo Dal Seno <bdalseno@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 8e09e801
No related branches found
No related tags found
No related merge requests found
......@@ -10266,7 +10266,7 @@ class LUInstanceCreate(LogicalUnit):
}
 
group_info = self.cfg.GetNodeGroup(pnode.group)
ipolicy = _CalculateGroupIPolicy(cluster, group_info)
ipolicy = ganeti.masterd.instance.CalculateGroupIPolicy(cluster, group_info)
res = _ComputeIPolicyInstanceSpecViolation(ipolicy, ispec)
if not self.op.ignore_ipolicy and res:
raise errors.OpPrereqError(("Instance allocation to group %s violates"
......
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