The single-request-reopen option is not covered in the current lens for resolv.conf, this patch corrects that issue and adds a test for it.
Thanks, -Erinn
>From 4e560a94cc9e14a0245615bc75caa243ad696140 Mon Sep 17 00:00:00 2001 From: Erinn Looney-Triggs <[email protected]> Date: Sat, 17 Dec 2011 23:55:18 -0900 Subject: [PATCH] Add in single-request-reopen into lens and tests. --- lenses/resolv.aug | 3 ++- lenses/tests/test_resolv.aug | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lenses/resolv.aug b/lenses/resolv.aug index f1b7af2..56072e2 100644 --- a/lenses/resolv.aug +++ b/lenses/resolv.aug @@ -87,7 +87,8 @@ let options = let options_entry = Build.key_value ("ndots"|"timeout"|"attempts") (Util.del_str ":") (store Rx.integer) | Build.flag ("debug"|"rotate"|"no-check-names" - |"inet6"|"ip6-bytestring"|"edns0") + |"inet6"|"ip6-bytestring"|"edns0" + |"single-request-reopen") | ip6_dotint in Build.key_value_line_comment diff --git a/lenses/tests/test_resolv.aug b/lenses/tests/test_resolv.aug index b5c988c..366a06e 100644 --- a/lenses/tests/test_resolv.aug +++ b/lenses/tests/test_resolv.aug @@ -11,7 +11,7 @@ search mynet.com anotherorg.net sortlist 130.155.160.0/255.255.240.0 130.155.0.0 options ndots:3 debug timeout:2 -options no-ip6-dotint # and EOL comments +options no-ip6-dotint single-request-reopen # and EOL comments " test Resolv.lns get conf = @@ -39,6 +39,7 @@ test Resolv.lns get conf = { "options" { "ip6-dotint" { "negate" } } + { "single-request-reopen" } { "#comment" = "and EOL comments" } } test Resolv.ip6_dotint -- 1.7.7.4
_______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
