[pve-devel] [PATCH] pending api : fix parsing 0 value

Alexandre DERUMIER aderumier at odiso.com
Mon Jan 12 16:36:19 CET 2015


>> + next if defined($conf->{$opt}); 
>>
>>sorry, don't get that. Why exactly? 

for example:


kvm:0
[PENDING]
kvm:1


should be

{"value":0,"pending":1,"key":"kvm"}


without this patch

{"value":0,"pending":1,"key":"kvm"},{"pending":1,"key":"kvm"}


(and in pve-manager, I think that the second one override the first one, so value is empty)



----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Lundi 12 Janvier 2015 15:49:43
Objet: Re: [pve-devel] [PATCH] pending api : fix parsing 0 value

On 01/12/2015 03:32 PM, Alexandre Derumier wrote: 
> + next if defined($conf->{$opt}); 

sorry, don't get that. Why exactly? 


More information about the pve-devel mailing list