diff --git a/cccli/command/tag.py b/cccli/command/tag.py index f13981b563d7be3e244442f1e020d07861706192..2ae72844d8073dd9d4f09bfb70468cf21086115a 100644 --- a/cccli/command/tag.py +++ b/cccli/command/tag.py @@ -33,14 +33,7 @@ class Command_tags(TqlCommand): # ask server objs = self.rpccall("tags", tql, _direct=True, _status=False) # display answer - for o in objs: - tid = self.tdr("id", o.pop("id")) - tags = " ".join([ "%s%s:%s%s"%(self.tdtc(t), - t, - self.tdc(t), - self.tdr(t, v)) - for (t,v) in o.items() ]) - self.printer.out("%sid=%s%s %s%s"%(self.tdtc("id"), self.tdc("id"), tid, tags, color["reset"])) + self.print_objects(objs) class Command_addtag(TqlCommand):