Skip to content

Commit

Permalink
sanitize extraJDL. See dmwm#8420 (dmwm#8423)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte committed Jun 28, 2024
1 parent d94e1db commit a01f25e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/TaskWorker/Actions/DagmanSubmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def addCRABInfoToClassAd(ad, info):
if 'extra_jdl' in info and info['extra_jdl']:
for jdl in info['extra_jdl'].split('\n'):
adName, adVal = jdl.lstrip('+').split('=', 1)
# remove spaces which would bread schedd.submit #8420
adName = adName.strip()
adVal = adVal.strip()
ad[adName] = adVal
if 'accelerator_jdl' in info and info['accelerator_jdl']:
for jdl in info['accelerator_jdl'].split('\n'):
Expand Down

0 comments on commit a01f25e

Please sign in to comment.