From 57ec06621b7b61af00e63b0a9ca3be068d87f609 Mon Sep 17 00:00:00 2001
From: Philipp Hufnagl
Date: Tue, 1 Aug 2023 16:46:00 +0200
Subject: [PATCH] fix whitespace
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Philipp Hufnagl
FG: dropped non-indentation parts
Signed-off-by: Fabian Grünbichler
---
src/PVE/Storage/Plugin.pm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm
index 9d3b1ae..74d1987 100644
--- a/src/PVE/Storage/Plugin.pm
+++ b/src/PVE/Storage/Plugin.pm
@@ -471,7 +471,7 @@ sub encode_value {
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;
@@ -1152,9 +1152,9 @@ sub volume_has_feature {
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});
@@ -1198,14 +1198,14 @@ sub list_images {
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;