api/config update: only iterate over hash keys, not values

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2019-05-15 10:34:12 +02:00
parent 4273e3ace9
commit 91f42b33a0

View File

@ -222,8 +222,7 @@ __PACKAGE__->register_method ({
}
}
foreach my $k (%$opts) {
for my $k (keys %$opts) {
$scfg->{$k} = $opts->{$k};
}