machinectl: hide legend in a case when no data (#3839)
author0xAX <0xAX@users.noreply.github.com>
Mon, 1 Aug 2016 15:39:27 +0000 (18:39 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 1 Aug 2016 15:39:27 +0000 (11:39 -0400)
commita912ab0474e2fcdc346d0315a8493f0f3ac867aa
tree185e96c442d439c4772bc322ae50543045891a5b
parentaa0c34279ee40bce2f9681b496922dedbadfca19
machinectl: hide legend in a case when no data (#3839)

For this moment machinectl prints legend and count of machines/images/etc.
But in a case when we have no images,machines,etc., there is no sense to
show legend:

~$ machinectl
MACHINE CLASS SERVICE

0 machines listed.

Let's print only 'No machines', 'No images', 'No transfers' in this case.
src/machine/machinectl.c