From 0e54e1c8bdeb2606a21cae72c6a895c5e5dda311 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Mon, 12 Jan 2015 15:32:17 +0100 Subject: [PATCH] pending api : fix parsing 0 value Signed-off-by: Alexandre Derumier --- PVE/API2/Qemu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index c3dad32c..d0c05e6f 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -770,7 +770,7 @@ __PACKAGE__->register_method({ foreach my $opt (keys $conf->{pending}) { next if $opt eq 'delete'; next if ref($conf->{pending}->{$opt}); # just to be sure - next if $conf->{$opt}; + next if defined($conf->{$opt}); my $item = { key => $opt }; $item->{pending} = $conf->{pending}->{$opt}; push @$res, $item;