[augeas-devel] augeas: master - Lokkit.forward_port: add missing eol

David Lutterkort lutter at fedoraproject.org
Fri Oct 9 17:20:58 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=05b7dfdd948af00c7c9d1524b53517bc2e233567
Commit:        05b7dfdd948af00c7c9d1524b53517bc2e233567
Parent:        e3fad9d55d1bd626f5342fc68715948c57331d1a
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Fri Oct 9 10:13:06 2009 -0700
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Fri Oct 9 10:14:54 2009 -0700

Lokkit.forward_port: add missing eol

Also adjust test_lokkit.aug since we're not getting a spurious empty entry
anymore
---
 lenses/lokkit.aug            |    2 +-
 lenses/tests/test_lokkit.aug |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lenses/lokkit.aug b/lenses/lokkit.aug
index 1d23c3c..692f361 100644
--- a/lenses/lokkit.aug
+++ b/lenses/lokkit.aug
@@ -61,7 +61,7 @@ let forward_port =
       elem "port" token . colon .
       elem "proto" token .
       (colon . elem "toport" token)? .
-      (colon . elem "toaddr" ipaddr)? ]
+      (colon . elem "toaddr" ipaddr)? . eol ]
 
 let entry =
   long_opt /selinux|selinuxtype|addmodule|removemodule|block-icmp/
diff --git a/lenses/tests/test_lokkit.aug b/lenses/tests/test_lokkit.aug
index 1c1a70f..d2c52ec 100644
--- a/lenses/tests/test_lokkit.aug
+++ b/lenses/tests/test_lokkit.aug
@@ -55,7 +55,6 @@ test Lokkit.lns get conf =
     { "proto" = "tcp" }
     { "toport" = "42" }
     { "toaddr" = "192.168.0.42" } }
-  { }
   { "selinux" = "permissive" }
 
 test Lokkit.custom_rules get




More information about the augeas-devel mailing list