correctly with Slurm tools. What this does is replace the incoming string with the gres actually chosen. Continuation of last commit. Bug 3521