From 570c35e60d05b84f7936a2c1d05b817e59b50d91 Mon Sep 17 00:00:00 2001 From: Salvatore Orlando Date: Thu, 11 Aug 2011 23:13:43 +0100 Subject: [PATCH] FIxing missing 'output' variable @ line 243 (syntax error) Fixing main as the plugin was still being retrieved with get_manager. That method is now get_plugin --- quantum/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quantum/cli.py b/quantum/cli.py index a015565d8..369fc6eed 100644 --- a/quantum/cli.py +++ b/quantum/cli.py @@ -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) -- 2.45.2