]> git.proxmox.com Git - pve-storage.git/commitdiff
api/config update: only iterate over hash keys, not values
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 15 May 2019 08:34:12 +0000 (10:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 15 May 2019 08:34:12 +0000 (10:34 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Storage/Config.pm

index f5e156055ce9b9c79b6ddefe1d4cdba320ae6855..4acc2a2746f1c68eda1a302cea087d85fb819286 100755 (executable)
@@ -222,8 +222,7 @@ __PACKAGE__->register_method ({
                }
            }
 
-
-           foreach my $k (%$opts) {
+           for my $k (keys %$opts) {
                $scfg->{$k} = $opts->{$k};
            }