summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 7938555..b7eef59 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -5,7 +5,13 @@ define systemd_mount (
String $wantedBy = 'default.target',
) {
- $mostly_fixed = regsubst($where, '/', '-', 'G')
+ $mostly_fixed = $where.map |$c| {
+ $c ? {
+ '/' => '-',
+ '-' => '\\x2d',
+ default => $c,
+ }
+ }.join('')
$fixed = if $mostly_fixed[0] == '-' {
$mostly_fixed[1, -1] # drop first char
} else {