diff --git a/PVE/API2/Storage/Config.pm b/PVE/API2/Storage/Config.pm index f5e1560..4acc2a2 100755 --- a/PVE/API2/Storage/Config.pm +++ b/PVE/API2/Storage/Config.pm @@ -222,8 +222,7 @@ __PACKAGE__->register_method ({ } } - - foreach my $k (%$opts) { + for my $k (keys %$opts) { $scfg->{$k} = $opts->{$k}; }