Skip to content

Commit

Permalink
Merge pull request #10 from aperloff/detectOS
Browse files Browse the repository at this point in the history
Automated host OS detection
  • Loading branch information
kpedro88 authored May 21, 2020
2 parents f349c5e + 21e98f9 commit 5136110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/jobSubmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def generateStep1(self,job):

def generateExtra(self,job):
job.patterns.update([
("OSVERSION","rhel7" if "el7" in os.uname()[2] else "rhel6"),
("MYDISK",self.disk),
("MYMEMORY",self.memory),
("MYCPUS",self.cpus),
Expand Down
2 changes: 1 addition & 1 deletion scripts/jobExecCondor.jdl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
universe = vanilla
Executable = jobExecCondor.sh
+REQUIRED_OS = "rhel6"
+REQUIRED_OS = "OSVERSION"
+DesiredOS = REQUIRED_OS
request_disk = MYDISK
request_memory = MYMEMORY
Expand Down

0 comments on commit 5136110

Please sign in to comment.