From 46887bca7f4fe35a2f8da68749ab8e1c226d0f3e Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 13 Sep 2009 18:19:57 +0200 Subject: unfortunately we can't append to variables in the same scope :( --- manifests/vhost/webdir.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'manifests/vhost') diff --git a/manifests/vhost/webdir.pp b/manifests/vhost/webdir.pp index a80f0f8..20ce44f 100644 --- a/manifests/vhost/webdir.pp +++ b/manifests/vhost/webdir.pp @@ -80,9 +80,10 @@ define apache::vhost::webdir( } case $ensure { absent: { - $managed_directories = [ "$real_path", "${real_path}/private", "$logdir" ] if $manage_docroot { - $managed_directories += [ "$documentroot" ] + $managed_directories = [ "$real_path", "${real_path}/private", "$logdir", "$documentroot" ] + } else { + $managed_directories = [ "$real_path", "${real_path}/private", "$logdir" ] } file{$managed_directories: ensure => absent, -- cgit v1.2.3