summaryrefslogtreecommitdiff
path: root/ironic/api/hooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/api/hooks.py')
-rw-r--r--ironic/api/hooks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ironic/api/hooks.py b/ironic/api/hooks.py
index a701d085d..f5dc5705e 100644
--- a/ironic/api/hooks.py
+++ b/ironic/api/hooks.py
@@ -145,8 +145,8 @@ class NoExceptionTracebackHook(hooks.PecanHook):
# Do nothing if there is no error.
# Status codes in the range 200 (OK) to 399 (400 = BAD_REQUEST) are not
# an error.
- if (http_client.OK <= state.response.status_int <
- http_client.BAD_REQUEST):
+ if (http_client.OK <= state.response.status_int
+ < http_client.BAD_REQUEST):
return
json_body = state.response.json
@@ -175,5 +175,5 @@ class PublicUrlHook(hooks.PecanHook):
"""
def before(self, state):
- state.request.public_url = (cfg.CONF.api.public_endpoint or
- state.request.host_url)
+ state.request.public_url = (cfg.CONF.api.public_endpoint
+ or state.request.host_url)