From: Adam Jahn Date: Fri, 24 Aug 2012 18:36:12 +0000 (-0400) Subject: comment is really what it's called, quotestring in case of spaces X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9f67b46e97a3e342bf10db51ea91abb4db0af947;p=puppet-samba.git comment is really what it's called, quotestring in case of spaces --- 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"],