From d2f9d18c8eebd08f99872c14e0633a04a0b4cd36 Mon Sep 17 00:00:00 2001 From: Adam Jahn Date: Fri, 24 Aug 2012 15:42:05 -0400 Subject: should quote user input --- manifests/server.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests') 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'], -- cgit v1.2.3