Re: [pve-devel] [PATCH 2/7] add optionnal current param to config api

2015-01-06 Thread Alexandre DERUMIER
Oh yes, sorry, seem better with your code. (I'm a lot busy today, It's first day of sales in France, so lot of activity on ecommerce websites) - Mail original - De: "dietmar" À: "pve-devel" , "aderumier" Envoyé: Mercredi 7 Janvier 2015 08:35:0

Re: [pve-devel] [PATCH 2/7] add optionnal current param to config api

2015-01-06 Thread Dietmar Maurer
On 01/02/2015 03:15 PM, Alexandre Derumier wrote: + + if(!$param->{current} || (defined($param->{current}) && $param->{current} == 0)) { + foreach my $opt (keys $conf->{pending}) { + foreach my $opt (PVE::Tools::split_list($conf->{pending}->{delete})) { +

Re: [pve-devel] [PATCH 2/7] add optionnal current param to config api

2015-01-06 Thread Dietmar Maurer
On 01/02/2015 03:15 PM, Alexandre Derumier wrote: @@ -685,11 +702,6 @@ __PACKAGE__->register_method({ type => 'string', optional => 1, }, - pending => { - description => "Pending value.", - t

[pve-devel] [PATCH 2/7] add optionnal current param to config api

2015-01-02 Thread Alexandre Derumier
config api return by default the pending config, like this it don't break current behaviour Add an optionnal current param to get to current running config Signed-off-by: Alexandre Derumier --- PVE/API2/Qemu.pm | 29 ++--- 1 file changed, 22 insertions(+), 7 deletions

[pve-devel] [PATCH 2/7] add optionnal current param to config api

2014-12-31 Thread Alexandre Derumier
config api return by default the pending config, like this it don't break current behaviour Add an optionnal current param to get to current running config Signed-off-by: Alexandre Derumier --- PVE/API2/Qemu.pm | 29 ++--- 1 file changed, 22 insertions(+), 7 deletions