From ff8f27d0f451a74dce6fd52f5fc6f6addfbc81d4 Mon Sep 17 00:00:00 2001
From: Thomas Bellman <bellman@nsc.liu.se>
Date: Sun, 2 Mar 2014 12:26:07 +0100
Subject: [PATCH] Fix semi-broken backslash escape of regexp.

In one instance, "\." was used, inside a double-quoted string literal.
This should have been "\\.".  Fix that.  (This happened to work anyway,
since Puppet leaves unknown backslash sequences as they are, and just
emits a warning on syslog every time the manifest is compiled.)
the
---
 manifests/init.pp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/manifests/init.pp b/manifests/init.pp
index 2bdb70e..7261b1b 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -149,7 +149,7 @@ define apache::include_file($content=undef, $source=undef, $ensure='present')
 	    delete_lines {
 		"apache::include_file::include::${name}":
 		    file => $apache::configfile,
-		    pattern => "\s*Include\s+conf\.d/${name}\.conf\s*$",
+		    pattern => "\s*Include\s+conf\\.d/${name}\\.conf\s*$",
 		    before => File[$includefile],
 		    notify => Class[apache::service];
 	    }
-- 
GitLab