From: Cédric Bosdonnat Date: Fri, 15 Apr 2016 15:01:02 +0000 (+0200) Subject: Adapt augeas profile to handle negative int values. X-Git-Tag: v1.3.5-rc1~477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0304a2a7efe6a69162500b5f47e04c8d58fbb3b8;p=thirdparty%2Flibvirt.git Adapt augeas profile to handle negative int values. Introducing keepalive_interval = -1 breaks to augeas lens. Fix the lens by allowing signed ints in the regular expression. --- diff --git a/daemon/libvirtd.aug b/daemon/libvirtd.aug index a70aa1dddf..4d40ee2239 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