Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Pilot/pilotCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def execute(self):
self.exitWithError(retCode)

try:
result = result.split("\n")[-1].split(" ")
result = result.strip().split("\n")[-1].split(" ")
numberOfProcessorsOnWN = int(result[0])
maxRAM = int(result[1])
try:
Expand Down Expand Up @@ -846,7 +846,7 @@ def execute(self):
if retCode:
self.log.error("There was an error updating the platform [ERROR %d]" % retCode)
self.exitWithError(retCode)
self.log.info("Architecture determined: %s" % localArchitecture.split("\n")[-1])
self.log.info("Architecture determined: %s" % localArchitecture.strip().split("\n")[-1])

# standard options
cfg = ["-FDMH"] # force update, skip CA checks, skip CA download, skip VOMS
Expand All @@ -861,7 +861,7 @@ def execute(self):
cfg.append("-ddd")

# real options added here
localArchitecture = localArchitecture.split("\n")[-1].strip()
localArchitecture = localArchitecture.strip().split("\n")[-1].strip()
cfg.append('-S "%s"' % self.pp.setup)
cfg.append("-o /LocalSite/Architecture=%s" % localArchitecture)

Expand Down