diff --git a/src/DIRAC/WorkloadManagementSystem/DB/JobDBUtils.py b/src/DIRAC/WorkloadManagementSystem/DB/JobDBUtils.py index 5214d83d761..8148f0a8606 100644 --- a/src/DIRAC/WorkloadManagementSystem/DB/JobDBUtils.py +++ b/src/DIRAC/WorkloadManagementSystem/DB/JobDBUtils.py @@ -93,6 +93,10 @@ def checkAndPrepareJob(jobID, classAdJob, classAdReq, owner, ownerGroup, jobAttr if inputDataPolicy and not classAdJob.lookupAttribute("InputDataModule"): classAdJob.insertAttributeString("InputDataModule", inputDataPolicy) + softwareDistModule = Operations(vo=vo).getValue("SoftwareDistModule") + if softwareDistModule and not classAdJob.lookupAttribute("SoftwareDistModule"): + classAdJob.insertAttributeString("SoftwareDistModule", softwareDistModule) + # priority priority = classAdJob.getAttributeInt("Priority") if priority is None: