]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
FIxing missing 'output' variable @ line 243 (syntax error)
authorSalvatore Orlando <salvatore.orlando@eu.citrix.com>
Thu, 11 Aug 2011 22:13:43 +0000 (23:13 +0100)
committerSalvatore Orlando <salvatore.orlando@eu.citrix.com>
Thu, 11 Aug 2011 22:13:43 +0000 (23:13 +0100)
Fixing main as the plugin was still being retrieved with get_manager. That method is now get_plugin

quantum/cli.py

index a015565d872743addcd1ce6c9019c384cafbb92a..369fc6eed46f36075f9b56bd4201577ed2fc8706 100644 (file)
@@ -240,7 +240,7 @@ def api_plug_iface(client, *args):
         res = client.attach_resource(nid, pid, data)
     except Exception, e:
         LOG.error("Failed to plug iface \"%s\" to port \"%s\": %s" % (vid,
-          pid, output))
+          pid, e))
         return
     LOG.debug(res)
     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)
     else:
         quantum = QuantumManager()
-        manager = quantum.get_manager()
+        manager = quantum.get_plugin()
         commands[cmd]["func"](manager, *args)
     sys.exit(0)