]> git.proxmox.com Git - qemu-server.git/commitdiff
pending api : fix parsing 0 value
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 12 Jan 2015 14:32:17 +0000 (15:32 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 15 Jan 2015 05:22:09 +0000 (06:22 +0100)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/API2/Qemu.pm

index c3dad32c13c41392e455ac615b6f735c03f870b3..d0c05e6fcfd02096820ec1419678291fe28ca224 100644 (file)
@@ -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;