my ($class, $type, $key, $value) = @_;
if ($key eq 'nodes') {
- return join(',', keys(%$value));
+ return join(',', keys(%$value));
} elsif ($key eq 'content') {
my $res = content_hash_to_string($value) || 'none';
return $res;
my $key = undef;
if($snapname){
- $key = 'snap';
+ $key = 'snap';
}else{
- $key = $isBase ? 'base' : 'current';
+ $key = $isBase ? 'base' : 'current';
}
return 1 if defined($features->{$feature}->{$key}->{$format});
next if !$found;
}
- my $info = {
+ my $info = {
volid => $volid, format => $format,
size => $size, vmid => $owner, used => $used, parent => $parent
};
- $info->{ctime} = $ctime if $ctime;
+ $info->{ctime} = $ctime if $ctime;
- push @$res, $info;
+ push @$res, $info;
}
return $res;