Merging bug fix for Bug 821733. Thanks lp:salvatore-orlando !
This commit is contained in:
commit
518d3a6386
@ -240,7 +240,7 @@ def api_plug_iface(client, *args):
|
|||||||
res = client.attach_resource(nid, pid, data)
|
res = client.attach_resource(nid, pid, data)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
LOG.error("Failed to plug iface \"%s\" to port \"%s\": %s" % (vid,
|
LOG.error("Failed to plug iface \"%s\" to port \"%s\": %s" % (vid,
|
||||||
pid, output))
|
pid, e))
|
||||||
return
|
return
|
||||||
LOG.debug(res)
|
LOG.debug(res)
|
||||||
print "Plugged interface \"%s\" to port:%s on network:%s" % (vid, pid, nid)
|
print "Plugged interface \"%s\" to port:%s on network:%s" % (vid, pid, nid)
|
||||||
@ -386,6 +386,6 @@ if __name__ == "__main__":
|
|||||||
commands[cmd]["api_func"](client, *args)
|
commands[cmd]["api_func"](client, *args)
|
||||||
else:
|
else:
|
||||||
quantum = QuantumManager()
|
quantum = QuantumManager()
|
||||||
manager = quantum.get_manager()
|
manager = quantum.get_plugin()
|
||||||
commands[cmd]["func"](manager, *args)
|
commands[cmd]["func"](manager, *args)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user