diff --git a/Changes b/Changes index e350b8c..71996a6 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ N.N.N - DD-MMM-2015 - Added the option 'cmd' in 'libvirt.pm' in order to be able to execute a custom command like 'virsh -r -c qemu:///session'. - Fixed in 'libvirt.pm' limiting to 100 all CPU values greater than 100. +- Fixed in 'libvirt.pm' to hide empty groups. 3.8.1 - 13-Nov-2015 diff --git a/lib/libvirt.pm b/lib/libvirt.pm index f50f447..3f758e7 100644 --- a/lib/libvirt.pm +++ b/lib/libvirt.pm @@ -417,6 +417,9 @@ sub libvirt_cgi { foreach my $vmg (sort keys %{$libvirt->{list}}) { my @lvl = split(',', $libvirt->{list}->{$vmg}); + # hide empty groups + next if !scalar(@lvl); + if($e) { print("
\n"); }