Revision bbe0f264 lib/cmdlib/group.py

b/lib/cmdlib/group.py
453 453
      new_ipolicy = cluster.SimpleFillIPolicy(self.new_ipolicy)
454 454
      CheckIpolicyVsDiskTemplates(new_ipolicy,
455 455
                                  cluster.enabled_disk_templates)
456
      instances = self.cfg.GetMultiInstanceInfoByName(owned_instance_names)
456
      instances = \
457
        dict(self.cfg.GetMultiInstanceInfoByName(owned_instance_names))
457 458
      gmi = ganeti.masterd.instance
458 459
      violations = \
459 460
          ComputeNewInstanceViolations(gmi.CalculateGroupIPolicy(cluster,
460 461
                                                                 self.group),
461
                                       new_ipolicy, instances, self.cfg)
462
                                       new_ipolicy, instances.values(),
463
                                       self.cfg)
462 464

  
463 465
      if violations:
464 466
        self.LogWarning("After the ipolicy change the following instances"

Also available in: Unified diff