summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorCédric Bosdonnat <cbosdonnat@suse.com>2016-04-15 17:01:02 +0200
committerCédric Bosdonnat <cbosdonnat@suse.com>2016-05-02 10:04:40 +0200
commit0304a2a7efe6a69162500b5f47e04c8d58fbb3b8 (patch)
tree638e144a413c293f285c6df6fe154e3e620412d5 /daemon
parent7434eba7c772f4396772dad9a64af53383031c3b (diff)
downloadlibvirt-0304a2a7efe6a69162500b5f47e04c8d58fbb3b8.tar.gz
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.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/libvirtd.aug2
1 files changed, 1 insertions, 1 deletions
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