88 |
open( my $cfgs, 'find /etc/vz/conf -maxdepth 1 -name "*.conf" |' ) || die "can't run find: $!"; |
open( my $cfgs, 'find /etc/vz/conf -maxdepth 1 -name "*.conf" |' ) || die "can't run find: $!"; |
89 |
while(<$cfgs>) { |
while(<$cfgs>) { |
90 |
chomp; |
chomp; |
91 |
if ( m#^.+/(\d+)\.conf$# ) { |
if ( m{^.+/(\d+)\.conf$} ) { |
92 |
if ( -d "$vz_root/private/$1" ) { |
if ( -d "$vz_root/private/$1" ) { |
93 |
push @c, $1; |
push @c, $1; |
94 |
} else { |
} else { |
156 |
|
|
157 |
|
|
158 |
my $output; |
my $output; |
159 |
|
$output = {} if defined $args->{hash}; |
160 |
|
|
161 |
if ( ! @vzlist_fields ) { |
if ( ! @vzlist_fields ) { |
162 |
open(my $vzlist, 'vzlist -L |') || die "can't start vzlist -L: $!"; |
open(my $vzlist, 'vzlist -L |') || die "can't start vzlist -L: $!"; |