Permalink
Browse files

Merge pull request #12 from cjeanneret/export-regsubstr

nfs::export - replaced "substitute" by puppet-native "regsubstr"
  • Loading branch information...
2 parents f8baccd + 741027c commit 484e1f8d52df6352f905d5a508599321a25bf3d5 @cjeanneret cjeanneret committed Oct 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 manifests/export.pp
View
@@ -3,8 +3,8 @@
$options="",
$guest) {
- $concatshare = substitute($share, '/', '-')
- $concatguest = substitute($guest, '/','-')
+ $concatshare = regsubst($share, '/', '-', 'G')
+ $concatguest = regsubst($guest, '/','-', 'G')
if $options == "" {
$content = "${share} ${guest}\n"

0 comments on commit 484e1f8

Please sign in to comment.