--- trunk/lib/VZ.pm 2008/08/14 22:47:54 49 +++ trunk/lib/VZ.pm 2009/02/02 15:10:11 59 @@ -27,6 +27,8 @@ our $vz_root = '/vz'; our $vz_conf = '/etc/vz/conf'; +$vz_root = '/var/lib/vz' if ! -e $vz_root && -e '/var/lib/vz'; + =head1 NAME VZ - helper functions for VZ tools @@ -156,6 +158,7 @@ my $output; + $output = {} if defined $args->{hash}; if ( ! @vzlist_fields ) { open(my $vzlist, 'vzlist -L |') || die "can't start vzlist -L: $!";