From b18bdef269e6be80f920f69e0669c4cc01adcbd7 Mon Sep 17 00:00:00 2001 From: Dmitriy Smirnov Date: Fri, 22 Mar 2024 18:54:57 +0300 Subject: [PATCH] fix code style --- module_utils/decort_utils.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/module_utils/decort_utils.py b/module_utils/decort_utils.py index f6c3499..7322838 100644 --- a/module_utils/decort_utils.py +++ b/module_utils/decort_utils.py @@ -392,11 +392,12 @@ class DecortController(object): retry_counter = retry_counter - 1 else: self.result['failed'] = True - self.result['msg'] =\ - (f'Error when calling DECORT API {api_resp.url}' - f', HTTP status code {api_resp.status_code}' - f', reason "{api_resp.reason}"' - f', parameters {arg_params}, text {api_resp.text}.') + self.result['msg'] = ( + f'Error when calling DECORT API {api_resp.url}' + f', HTTP status code {api_resp.status_code}' + f', reason "{api_resp.reason}"' + f', parameters {arg_params}, text {api_resp.text}.' + ) self.amodule.fail_json(**self.result) return None # actually, this directive will never be executed as fail_json aborts the script