]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Cisco plugin CLI call to quantumclient CLI
authormat <mathieu.rohon@gmail.com>
Wed, 16 May 2012 14:16:43 +0000 (16:16 +0200)
committermat <mathieu.rohon@gmail.com>
Wed, 16 May 2012 14:16:43 +0000 (16:16 +0200)
when Cisco plugin CLI is used, it wil call the quantumclient CLI if the command is not in its extensions.
the version of the Quantum API must be specified when the the Cisco plugin CLI is looking for Quantum commands.

Bug 1000251

Change-Id: I3e4039edb7cb79411fc60677ef6f99fca8007dc9

quantum/plugins/cisco/client/cli.py

index 7477eacfb60a0a323da0ed597a4f33668de096c4..cd6f7842bef944fc24baba415e244ae7fd03145d 100644 (file)
@@ -189,7 +189,7 @@ def main():
         sys.exit(1)
 
     CMD = args[0]
-    if CMD in qcli.commands.keys():
+    if CMD in qcli.commands['1.1'].keys():
         qcli.main()
         sys.exit(1)
     if CMD not in COMMANDS.keys():