Skip to content

Commit

Permalink
adding in a req env
Browse files Browse the repository at this point in the history
  • Loading branch information
jerowe committed Dec 22, 2022
1 parent 9aa989d commit 92d7665
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aws_pcluster_slurm_spawner/aws_pcluster_slurm_spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,11 @@ def options_from_form(self, formdata):
for key in submission_data.keys():
setattr(self, key, submission_data[key])

if "req_custom_env" in submission_data.keys():
l = submission_data["req_custom_env"]
l = "\n".join(l.splitlines())
submission_data["req_custom_env"] = l

if "req_custom_r" in submission_data.keys():
custom_r = submission_data["req_custom_r"]
custom_r = os.path.split(custom_r)
Expand Down

0 comments on commit 92d7665

Please sign in to comment.