Revision 3fe41221 lib/cmdlib/network.py

b/lib/cmdlib/network.py
536 536
  @param check_fn: Function checking for conflict
537 537
  @type action: string
538 538
  @param action: Part of error message (see code)
539
  @param instances: the instances to check
540
  @type instances: list of instance objects
539 541
  @raise errors.OpPrereqError: If conflicting IP addresses are found.
540 542

  
541 543
  """
......
643 645

  
644 646
      _NetworkConflictCheck(
645 647
        self, lambda nic: pool.Contains(nic.ip), "connect to",
646
        self.cfg.GetMultiInstanceInfoByName(owned_instance_names))
648
        [instance_info for (_, instance_info) in
649
         self.cfg.GetMultiInstanceInfoByName(owned_instance_names)])
647 650

  
648 651
  def Exec(self, feedback_fn):
649 652
    # Connect the network and update the group only if not already connected

Also available in: Unified diff