Skip to content
Snippets Groups Projects
Commit 2d1cb44d authored by Seblu's avatar Seblu
Browse files

status is now printer everytime when asked

parent 242f1f5f
No related branches found
No related tags found
No related merge requests found
......@@ -105,14 +105,14 @@ class TqlCommand(OptionCommand):
def show_status(self, ans):
'''Show status of an Tql request'''
try:
s = ""
self.printer.out("Status:")
for o in ans:
s += "%sid: %s%s %sstatus: %s%s %smessage:%s%s%s"%(
s = "%sid: %s%s %sstatus: %s%s %smessage:%s%s%s"%(
self.tdtc("id"), self.tdc("id"), self.tdr("id", o),
self.tdtc("status"), self.tdc("status"), ans[o][0],
self.tdtc("message"), self.tdc("message"), ans[o][1],
color["reset"])
if s:
self.printer.out(s)
if s:
self.printer.out(s)
except Exception:
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment