We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 314325a commit 0e8ed82Copy full SHA for 0e8ed82
1 file changed
snakemake_interface_executor_plugins/utils.py
@@ -97,9 +97,15 @@ def encode_target_jobs_cli_args(
97
target_jobs: List[TargetSpec],
98
) -> List[str]:
99
items = []
100
+ def add_quotes_if_contains_comma(s):
101
+ if isinstance(s, str):
102
+ if "," in s:
103
+ return f'"{s}"'
104
+ return s
105
+
106
for spec in target_jobs:
107
wildcards = ",".join(
- f"{key}={value}" for key, value in spec.wildcards_dict.items()
108
+ f'{key}={add_quotes_if_contains_comma(value)}' for key, value in spec.wildcards_dict.items()
109
)
110
items.append(f"{spec.rulename}:{wildcards}")
111
return items
0 commit comments