summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem@us.ibm.com>2013-09-30 09:37:49 -0700
committerMatt Riedemann <mriedem@us.ibm.com>2013-09-30 09:37:49 -0700
commitc3608eec8e86ac1b2c19f9aa51d0246d507b39bf (patch)
treeeb99b85a9cffcb6e9d421a399ff389037b631b5b
parenta4cc81bce47f5ce8c03c1b4dca5b00d638327585 (diff)
downloadpython-neutronclient-c3608eec8e86ac1b2c19f9aa51d0246d507b39bf.tar.gz
Proxy find_resource_by_name_or_id from neutron client2.2.4.3
Change I95a351071e68dfc2d67f3895c87f45ad2221767f gutted quantumclient so it serves as a proxy for neutronclient, but in the process the static method find_resource_by_name_or_id was removed. Nova is using find_resource_by_name_or_id directly so it needs to still exist in quantumclient and proxy through to neutronclient. This is needed for the stable branches which are still using python-quantumclient. Closes-Bug: #1233264 Change-Id: I01b099aa34fedb63967517f288905321816eaf18
-rw-r--r--quantumclient/quantum/v2_0/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/quantumclient/quantum/v2_0/__init__.py b/quantumclient/quantum/v2_0/__init__.py
index 38e43ab..718991a 100644
--- a/quantumclient/quantum/v2_0/__init__.py
+++ b/quantumclient/quantum/v2_0/__init__.py
@@ -15,6 +15,7 @@
#
# vim: tabstop=4 shiftwidth=4 softtabstop=4
-from neutronclient.neutron.v2_0 import NeutronCommand
+from neutronclient.neutron import v2_0
-QuantumCommand = NeutronCommand
+QuantumCommand = v2_0.NeutronCommand
+find_resourceid_by_name_or_id = v2_0.find_resourceid_by_name_or_id