reverted .gitignore and fixed indents of sge.py
This commit is contained in:
parent
6925770e4f
commit
f32c8e0650
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,4 +7,3 @@ dist/*
|
|||||||
*~
|
*~
|
||||||
.i3pystatus-*
|
.i3pystatus-*
|
||||||
ci-build
|
ci-build
|
||||||
.idea/
|
|
||||||
|
@ -26,8 +26,9 @@ class SGETracker(IntervalModule):
|
|||||||
color = "#ffffff"
|
color = "#ffffff"
|
||||||
|
|
||||||
def parse_qstat_xml(self):
|
def parse_qstat_xml(self):
|
||||||
xml = subprocess.check_output("ssh {0} \"qstat -f -xml\"".format(self.ssh), stderr=subprocess.STDOUT,
|
xml = subprocess.check_output("ssh {0} \"qstat -f -xml\"".format(self.ssh),
|
||||||
shell=True)
|
stderr=subprocess.STDOUT,
|
||||||
|
shell=True)
|
||||||
root = etree.fromstring(xml)
|
root = etree.fromstring(xml)
|
||||||
jobs = root.xpath('//job_info/job_info/job_list')
|
jobs = root.xpath('//job_info/job_info/job_list')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user