]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Handle 405 error codes correctly in NVP plugin
authorarmando-migliaccio <amigliaccio@nicira.com>
Tue, 22 Oct 2013 21:08:59 +0000 (14:08 -0700)
committerarmando-migliaccio <amigliaccio@nicira.com>
Wed, 23 Oct 2013 17:17:17 +0000 (10:17 -0700)
When NVP returns a 405 error code no exception is
raised, causing the plugin to assume that everything
went well when it didn't.

Fixes bug #1243411

Change-Id: If70db05b8c6950bfa88a36c4f0c20ee80419d31d

neutron/plugins/nicira/NvpApiClient.py

index f61f96b919dd38eb6a7a2f70e3cd41b32d2a67b2..ebc3f1d48d09d8f0209569ca568b4f505bcbe706 100644 (file)
@@ -195,6 +195,7 @@ class NVPApiHelper(client_eventlet.NvpApiClientEventlet):
     # TODO(del): ensure error_codes are handled/raised appropriately
     # in api_client.
     error_codes = {404: fourZeroFour,
+                   405: zero,
                    409: fourZeroNine,
                    503: fiveZeroThree,
                    403: fourZeroThree,