From 9f67b46e97a3e342bf10db51ea91abb4db0af947 Mon Sep 17 00:00:00 2001 From: Adam Jahn Date: Fri, 24 Aug 2012 14:36:12 -0400 Subject: comment is really what it's called, quotestring in case of spaces --- manifests/server/share.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'manifests/server') diff --git a/manifests/server/share.pp b/manifests/server/share.pp index 330a0b0..1c3888e 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -1,5 +1,5 @@ define samba::server::share($ensure = present, - $description = '', + $comment = '', $path = '', $browsable = '', $create_mask = '', @@ -22,8 +22,8 @@ define samba::server::share($ensure = present, if $ensure == "present" { augeas { "${name}-comment": context => $context, - changes => $description ? { - default => "set ${target}/comment ${description}", + changes => $comment ? { + default => "set ${target}/comment '${comment}'", '' => "rm ${target}/comment", }, require => Augeas["${name}-section"], -- cgit v1.2.3