Skip to content

Commit c3608ee

Browse files
author
Matt Riedemann
committed
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
1 parent a4cc81b commit c3608ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

quantumclient/quantum/v2_0/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#
1616
# vim: tabstop=4 shiftwidth=4 softtabstop=4
1717

18-
from neutronclient.neutron.v2_0 import NeutronCommand
18+
from neutronclient.neutron import v2_0
1919

20-
QuantumCommand = NeutronCommand
20+
QuantumCommand = v2_0.NeutronCommand
21+
find_resourceid_by_name_or_id = v2_0.find_resourceid_by_name_or_id

0 commit comments

Comments
 (0)