Skip to content
Permalink
Browse files
fix: add quotes to each item of the wait_for_files list (#1160)
* Add quotes to tmp dir in wait-for-file options

* Add quotes to each item of the wait_for_files list

* Add quotes to the wait_for_files_file path

* Improve quoting strategy

* Format following Black code style

Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
  • Loading branch information
fdchevalier and johanneskoester committed Oct 21, 2021
1 parent ebfe00f commit 72856edd12fbe29d723731c6f596f05cd2b59c0e
Showing 1 changed file with 3 additions and 2 deletions.
@@ -789,11 +789,12 @@ def format_job(self, pattern, job, **kwargs):

waitfiles_parameter = format(
"--wait-for-files-file {wait_for_files_file}",
wait_for_files_file=wait_for_files_file,
wait_for_files_file=repr(wait_for_files_file),
)
else:
waitfiles_parameter = format(
"--wait-for-files {wait_for_files}", wait_for_files=wait_for_files
"--wait-for-files {wait_for_files}",
wait_for_files=[repr(f) for f in wait_for_files],
)

format_p = partial(

0 comments on commit 72856ed

Please sign in to comment.