Commit baa8b916 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Christos Stavrakakis
Browse files

Minor change in rapi call



Ganeti 2.5 needs a tupple of length 3 for nics modifications.
So in ModifyInstance rapi call we pass (add, -1, {..}) for nis.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent d7677839
......@@ -388,7 +388,7 @@ def delete_network(net):
def connect_to_network(vm, net):
nic = {'mode': 'bridged', 'link': net.link.name}
rapi.ModifyInstance(vm.backend_id, nics=[('add', nic)],
rapi.ModifyInstance(vm.backend_id, nics=[('add', -1, nic)],
hotplug=True, dry_run=settings.TEST)
......
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