From fadfb15642f832180264beabb792908be088759d Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Fri, 18 Feb 2011 21:14:55 +0100 Subject: [PATCH] fix bad list of ignoring tags for status display --- cccli/command/command.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cccli/command/command.py b/cccli/command/command.py index 6a934d0..5251ee1 100644 --- a/cccli/command/command.py +++ b/cccli/command/command.py @@ -168,7 +168,7 @@ class TqlCommand(OptionCommand): if _options["callback"] is not None: _options["callback"](d) if _options["status"]: - self.print_objects(d, ("output")) + self.print_objects(d, ["output"]) return d except RpcError as e: if _options["exception"]: @@ -206,7 +206,7 @@ class TqlCommand(OptionCommand): if _options["callback"] is not None: _options["callback"](obj) if _options["status"]: - self.print_objects(d, ("output")) + self.print_objects(d, ["output"]) except RpcError as e: self.printer.error("RPCError: %s"%str(e)) @@ -220,17 +220,17 @@ class TqlCommand(OptionCommand): def print_tags(self, taglist, order=None, ignore=None): '''Display a tag with tagdisplay settings''' - _ignore = () if ignore is None else ignore - _order = () if order is None else order + ignore = () if ignore is None else ignore + order = () if order is None else order # copy dict to show tl = taglist.copy() # remove ignore tags - for tn in _ignore: + for tn in ignore: tl.pop(tn, None) # list to print pls = [] # print firstly order tags - for tn in _order: + for tn in order: tv = tl.pop(tn, None) if tv is not None: pls.append("%s%s:%s%s"%(self.tdtc(tn), tn, self.tdc(tn), self.tdr(tn, tv))) -- GitLab