aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2012-08-24 15:42:05 -0400
committerAdam Jahn <ajjahn@gmail.com>2012-08-24 15:42:05 -0400
commitd2f9d18c8eebd08f99872c14e0633a04a0b4cd36 (patch)
tree62d157b904856a7b5ff06d86cded34b71dcbfa6a
parent2287962321ecf52c0b0cc42cc145c1dff0e5bdb1 (diff)
downloadpuppet-samba-d2f9d18c8eebd08f99872c14e0633a04a0b4cd36.tar.gz
puppet-samba-d2f9d18c8eebd08f99872c14e0633a04a0b4cd36.tar.bz2
should quote user input
-rw-r--r--manifests/server.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 2593a55..b552578 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -17,7 +17,7 @@ class samba::server($workgroup = '',
augeas { 'global-workgroup':
context => $context,
changes => $workgroup ? {
- default => "set ${target}/workgroup $workgroup",
+ default => "set ${target}/workgroup '$workgroup'",
'' => "rm ${target}/workgroup",
},
require => Augeas['global-section'],