[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH] Adapt augeas profile to handle negative int values.
- From: Michal Privoznik <mprivozn redhat com>
- To: Cédric Bosdonnat <cbosdonnat suse com>, libvir-list redhat com
- Subject: Re: [libvirt] [PATCH] Adapt augeas profile to handle negative int values.
- Date: Mon, 2 May 2016 09:42:58 +0200
On 15.04.2016 17:03, Cédric Bosdonnat wrote:
> Introducing keepalive_interval = -1 breaks to augeas lens. Fix the lens
> by allowing signed ints in the regular expression.
> ---
> daemon/libvirtd.aug | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/daemon/libvirtd.aug b/daemon/libvirtd.aug
> index a70aa1d..4d40ee2 100644
> --- a/daemon/libvirtd.aug
> +++ b/daemon/libvirtd.aug
> @@ -13,7 +13,7 @@ module Libvirtd =
>
> let str_val = del /\"/ "\"" . store /[^\"]*/ . del /\"/ "\""
> let bool_val = store /0|1/
> - let int_val = store /[0-9]+/
> + let int_val = store /-?[0-9]+/
> let str_array_element = [ seq "el" . str_val ] . del /[ \t\n]*/ ""
> let str_array_val = counter "el" . array_start . ( str_array_element . ( array_sep . str_array_element ) * ) ? . array_end
>
>
ACK
Michal
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]