reverted .gitignore and fixed indents of sge.py

This commit is contained in:
Jan Oliver Oelerich 2016-01-19 10:17:50 +01:00
parent 6925770e4f
commit f32c8e0650
2 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@ -7,4 +7,3 @@ dist/*
*~ *~
.i3pystatus-* .i3pystatus-*
ci-build ci-build
.idea/

View File

@ -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')