From 12cd88dfe243689cd66acd81b13f04b3589231f3 Mon Sep 17 00:00:00 2001 From: Jiri Podivin Date: Tue, 9 Mar 2021 16:17:35 +0100 Subject: [PATCH] Fixes string formatting of the error msg log Apart from incomplete output the incorrect formatting causes followup exception further obfuscating the original issue. Minor issue related to: BGZ:1895045 Signed-off-by: Jiri Podivin Change-Id: Ibed0bc4b78be957819205bed76073e72820ab2a1 --- validations_libs/utils.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/validations_libs/utils.py b/validations_libs/utils.py index cd74727c..dd23c159 100644 --- a/validations_libs/utils.py +++ b/validations_libs/utils.py @@ -51,8 +51,12 @@ def create_artifacts_dir(dir_path=None, prefix=None): os.makedirs(log_dir) return validation_uuid, log_dir except OSError: - LOG.exception("Error while creating Ansible artifacts log file." - "Please check the access rights for {}").format(log_dir) + LOG.exception( + ( + "Error while creating Ansible artifacts log file." + "Please check the access rights for {}" + ).format(log_dir) + ) def parse_all_validations_on_disk(path, groups=None):