summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNachi Ueno <nachi@ntti3.com>2013-08-07 12:28:22 -0700
committerNachi Ueno <nachi@ntti3.com>2013-08-07 12:31:58 -0700
commit5a382451b82a4c7fccbd6f5c4f6f270a561704b3 (patch)
tree3b63e026ef7863bb9d86ac807af00a66b5787788
parentce46ca4d76994dd9cc29db2c5b4944ba907d60b0 (diff)
downloadpython-neutronclient-2.2.6.tar.gz
Add get_attr for EXTED_PLURALS2.2.6
FW Client CLI change (d04f3822b5b7ef8d6c918c753a6e7733bdda0344) breaks nova unit test. The change itself is good, but we should change nova ut before the changing neutron client. In this commit, we will skip the error adding get_attr for the property. Note, this is a temporary fix, we will revert this change when Nova side unit test fixed Fixes bug 1209364 Change-Id: I6b5d7e6d529e05c89ad14c09069f4651ef3a500e
-rw-r--r--neutronclient/neutron/v2_0/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neutronclient/neutron/v2_0/__init__.py b/neutronclient/neutron/v2_0/__init__.py
index c335290..b962929 100644
--- a/neutronclient/neutron/v2_0/__init__.py
+++ b/neutronclient/neutron/v2_0/__init__.py
@@ -35,7 +35,7 @@ UUID_PATTERN = '-'.join([HEX_ELEM + '{8}', HEX_ELEM + '{4}',
def _get_resource_plural(resource, client):
- plurals = client.EXTED_PLURALS
+ plurals = getattr(client, 'EXTED_PLURALS', [])
for k in plurals:
if plurals[k] == resource:
return k