Skip to content

Commit

Permalink
Merge pull request #300 from IceBear2k/master
Browse files Browse the repository at this point in the history
Revert and fix regex
  • Loading branch information
bmjen committed Apr 20, 2015
2 parents 30cb251 + e562bcd commit 16104d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/fragment.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 16104d0

Please sign in to comment.