Merge "Defend against neutron error response missing keys"

This commit is contained in:
Zuul 2018-04-09 02:01:14 +00:00 committed by Gerrit Code Review
commit d0683e5462

View File

@ -219,6 +219,7 @@ class LoadBalancersController(base.BaseController):
# if the error was API ready
if getattr(e, 'orig_code', None) is not None:
e.code = e.orig_code
if getattr(e, 'orig_msg', None) is not None:
e.message = e.orig_msg
e.msg = e.orig_msg
raise e