[pve-devel] applied: [PATCH guest-common] unbreak config_with_pending_array
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed Aug 5 12:14:08 CEST 2020
which lead to current and pending/delete values being returned
separately, and being misinterpreted by the web interface (and probably
other clients as well).
Fixes: daf8fca57a34417365c873ed91f3a52bf0002a4f
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
PVE/GuestHelpers.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/GuestHelpers.pm b/PVE/GuestHelpers.pm
index 1d37668..dd44344 100644
--- a/PVE/GuestHelpers.pm
+++ b/PVE/GuestHelpers.pm
@@ -220,7 +220,7 @@ sub config_with_pending_array {
key => $opt,
value => $conf->{$opt},
};
- $item->{pending} = delete $pending->{$opt} if defined($conf->{pending}->{$opt});
+ $item->{pending} = delete $pending->{$opt} if defined($pending->{$opt});
my $delete = delete $pending_delete_hash->{$opt};
$item->{delete} = $delete->{force} ? 2 : 1 if defined($delete);
--
2.20.1
More information about the pve-devel
mailing list