Merge "Fixes string formatting of the error msg log"

This commit is contained in:
Zuul 2021-03-27 01:55:00 +00:00 committed by Gerrit Code Review
commit 18862912b3
1 changed files with 6 additions and 2 deletions

View File

@ -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):