diff --git a/{{cookiecutter.profile_name}}/slurm-status.py b/{{cookiecutter.profile_name}}/slurm-status.py index 7cc28d1..c615f6d 100755 --- a/{{cookiecutter.profile_name}}/slurm-status.py +++ b/{{cookiecutter.profile_name}}/slurm-status.py @@ -71,7 +71,11 @@ def get_status_sidecar(jobid): return get_status_direct(jobid) -jobid = sys.argv[1] +# need to support quoted and unquoted jobid +# see https://github.com/Snakemake-Profiles/lsf/issues/45 +split_args = shlex.split(" ".join(sys.argv[1:])) +jobid = split_args[0] +# outlog = split_args[1] if SIDECAR_VARS: logger.debug("slurm-status.py: querying sidecar")