Proxy find_resource_by_name_or_id from neutron client

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
This commit is contained in:
Matt Riedemann
2013-09-30 09:37:49 -07:00
parent a4cc81bce4
commit c3608eec8e

View File

@@ -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