Commit 9f813149 authored by Seblu's avatar Seblu
Browse files

don't print object count if there is less than 2 objects

parent bb2bca52
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -226,7 +226,9 @@ class RemoteCommand(OptionCommand):
                self.printer.out("[%s] "%i, nl="")
            self.print_tags(o, order=_order)
        if not self.options.nocount:
            self.printer.out("Objects count: %s" % len(objectlist["objects"]))
            length = len(objectlist["objects"])
            if length > 1:
                self.printer.out("Objects count: %s" % length)

    def print_tags(self, taglist, order=None):
        '''Display a tag with tagdisplay settings'''