Fix conflicts check in LUNetworkDisconnect
[ganeti-local] / lib / cmdlib / network.py
index 649b167..c638c5a 100644 (file)
@@ -716,7 +716,8 @@ class LUNetworkDisconnect(LogicalUnit):
     else:
       _NetworkConflictCheck(
         self, lambda nic: nic.network == self.network_uuid, "disconnect from",
-        self.cfg.GetMultiInstanceInfoByName(owned_instances))
+        [instance_info for (_, instance_info) in
+        self.cfg.GetMultiInstanceInfoByName(owned_instances)])
 
   def Exec(self, feedback_fn):
     # Disconnect the network and update the group only if network is connected