fix code style
This commit is contained in:
@@ -392,11 +392,12 @@ class DecortController(object):
|
|||||||
retry_counter = retry_counter - 1
|
retry_counter = retry_counter - 1
|
||||||
else:
|
else:
|
||||||
self.result['failed'] = True
|
self.result['failed'] = True
|
||||||
self.result['msg'] =\
|
self.result['msg'] = (
|
||||||
(f'Error when calling DECORT API {api_resp.url}'
|
f'Error when calling DECORT API {api_resp.url}'
|
||||||
f', HTTP status code {api_resp.status_code}'
|
f', HTTP status code {api_resp.status_code}'
|
||||||
f', reason "{api_resp.reason}"'
|
f', reason "{api_resp.reason}"'
|
||||||
f', parameters {arg_params}, text {api_resp.text}.')
|
f', parameters {arg_params}, text {api_resp.text}.'
|
||||||
|
)
|
||||||
self.amodule.fail_json(**self.result)
|
self.amodule.fail_json(**self.result)
|
||||||
return None # actually, this directive will never be executed as fail_json aborts the script
|
return None # actually, this directive will never be executed as fail_json aborts the script
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user