Handle 405 error codes correctly in NVP plugin

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
This commit is contained in:
armando-migliaccio 2013-10-22 14:08:59 -07:00
parent 3a7dad7c5d
commit bf7a0e2ce7

View File

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