From 91f42b33a06591c4a855f8ada64a5cfcf6c037ac Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 15 May 2019 10:34:12 +0200 Subject: [PATCH] api/config update: only iterate over hash keys, not values Signed-off-by: Thomas Lamprecht --- PVE/API2/Storage/Config.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}; } -- 2.39.2