Commit 1fa66e67 authored by Laurent EL SHAFEY's avatar Laurent EL SHAFEY
Browse files

Fix multiple lines parsing

parent 1a154f8c
......@@ -276,8 +276,8 @@ def qstat(jobid, context='grid'):
s = line.strip()
if s.lower().find('do not exist') != -1: return {}
if not s or s.find(10*'=') != -1: continue
key, value = QSTAT_FIELD_SEPARATOR.split(s, 1)
retval[key] = value
kv = QSTAT_FIELD_SEPARATOR.split(s, 1)
if len(kv) == 2: retval[kv[0]] = kv[1]
return retval
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment