Browse Source

Merge "Update Fault class to pass error key up"

tags/1.2.0
Zuul Gerrit Code Review 8 months ago
parent
commit
6be279e35b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      novajoin/base.py

+ 3
- 2
novajoin/base.py View File

@@ -717,9 +717,10 @@ class Fault(webob.exc.HTTPException):
fault_name = self._fault_names.get(code, "computeFault")
explanation = self.wrapped_exc.explanation
fault_data = {
fault_name: {
'error': {
'code': code,
'message': explanation}}
'message': explanation,
'fault_name': fault_name}}
if code == 413:
retry = self.wrapped_exc.headers.get('Retry-After', None)
if retry:


Loading…
Cancel
Save