fix whitespace
Signed-off-by: Philipp Hufnagl <p.hufnagl@proxmox.com> FG: dropped non-indentation parts Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
committed by
Fabian Grünbichler
parent
618bdfd927
commit
57ec06621b
@ -471,7 +471,7 @@ sub encode_value {
|
|||||||
my ($class, $type, $key, $value) = @_;
|
my ($class, $type, $key, $value) = @_;
|
||||||
|
|
||||||
if ($key eq 'nodes') {
|
if ($key eq 'nodes') {
|
||||||
return join(',', keys(%$value));
|
return join(',', keys(%$value));
|
||||||
} elsif ($key eq 'content') {
|
} elsif ($key eq 'content') {
|
||||||
my $res = content_hash_to_string($value) || 'none';
|
my $res = content_hash_to_string($value) || 'none';
|
||||||
return $res;
|
return $res;
|
||||||
@ -1152,9 +1152,9 @@ sub volume_has_feature {
|
|||||||
|
|
||||||
my $key = undef;
|
my $key = undef;
|
||||||
if($snapname){
|
if($snapname){
|
||||||
$key = 'snap';
|
$key = 'snap';
|
||||||
}else{
|
}else{
|
||||||
$key = $isBase ? 'base' : 'current';
|
$key = $isBase ? 'base' : 'current';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1 if defined($features->{$feature}->{$key}->{$format});
|
return 1 if defined($features->{$feature}->{$key}->{$format});
|
||||||
@ -1198,14 +1198,14 @@ sub list_images {
|
|||||||
next if !$found;
|
next if !$found;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $info = {
|
my $info = {
|
||||||
volid => $volid, format => $format,
|
volid => $volid, format => $format,
|
||||||
size => $size, vmid => $owner, used => $used, parent => $parent
|
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;
|
return $res;
|
||||||
|
|||||||
Reference in New Issue
Block a user