Skip to content

Commit c795420

Browse files
committed
Fixing PATH for idle-nodes shell call
1 parent f28de02 commit c795420

File tree

1 file changed

+2
-1
lines changed
  • node/nodewatcher/plugins

1 file changed

+2
-1
lines changed

node/nodewatcher/plugins/sge.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def getJobs(hostname):
1919
command = ['/opt/sge/bin/idle-nodes']
2020
try:
2121
_output = subprocess.Popen(command, stdout=subprocess.PIPE,
22-
env=dict(os.environ, SGE_ROOT='/opt/sge')).communicate()[0]
22+
env=dict(os.environ, SGE_ROOT='/opt/sge',
23+
PATH='/opt/sge/bin:/opt/sge/bin/lx-amd64:/bin:/usr/bin')).communicate()[0]
2324
except subprocess.CalledProcessError:
2425
print ("Failed to run %s\n" % command)
2526

0 commit comments

Comments
 (0)