From e562bcdaf03309d3c841ba35fffe5f4d7d36947b Mon Sep 17 00:00:00 2001 From: Felix Kellner Date: Mon, 20 Apr 2015 10:54:06 +0200 Subject: [PATCH] Revert and fix regex --- manifests/fragment.pp | 2 +- manifests/init.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/fragment.pp b/manifests/fragment.pp index a3d42ef00..fabc3596d 100644 --- a/manifests/fragment.pp +++ b/manifests/fragment.pp @@ -44,7 +44,7 @@ fail("Can't use 'source' and 'content' at the same time") } - $safe_target_name = regsubst($target, '[/:\n\s\\]', '_', 'GM') + $safe_target_name = regsubst($target, '[/:\n\s]', '_', 'GM') file_fragment { $name: tag => $safe_target_name, diff --git a/manifests/init.pp b/manifests/init.pp index 69dc46efd..981a5c271 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -74,7 +74,7 @@ warning('The $force parameter to concat is deprecated and has no effect.') } - $safe_name = regsubst($name, '[/:\n\s\\]', '_', 'G') + $safe_name = regsubst($name, '[/:\n\s]', '_', 'G') $default_warn_message = "# This file is managed by Puppet. DO NOT EDIT.\n" case $warn {