Commit 32449822 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Klaus Aehlig

Fix conflicts check in LUNetworkDisconnect

The function _NetworkConflictCheck expects a list of instances as
last argument, not a list of pairs of instance names and instances.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent c832f7e9
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment