I use the resource declaration slurm_extra: str("--gres=localtmp:10G"), which gets me around all the parser incompatibilities and since the original string is parsed around in subsequent command lines ...