Skip to content

Commit 866204c

Browse files
committed
fix: Remove JobModel.checkPlatform
1 parent 3337f5d commit 866204c

File tree

1 file changed

+0
-10
lines changed
  • src/DIRAC/WorkloadManagementSystem/Utilities

1 file changed

+0
-10
lines changed

src/DIRAC/WorkloadManagementSystem/Utilities/JobModel.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,6 @@ def checkThatSitesAndBannedSitesAreNotMutuallyExclusive(self) -> Self:
184184
raise ValueError("sites and bannedSites are mutually exclusive")
185185
return self
186186

187-
@field_validator("platform")
188-
def checkPlatform(cls, v: str):
189-
if v:
190-
res = getDIRACPlatforms()
191-
if not res["OK"]:
192-
raise ValueError(res["Message"])
193-
if v not in res["Value"]:
194-
raise ValueError("Invalid platform")
195-
return v
196-
197187
@field_validator("priority")
198188
def checkPriorityBounds(cls, v):
199189
minPriority = Operations().getValue("JobDescription/MinPriority", 0)

0 commit comments

Comments
 (0)