From 010df77aa5db0365b719af890fbcb98c46cd551d Mon Sep 17 00:00:00 2001 From: Michael Ruoss Date: Tue, 3 Sep 2013 10:12:25 +0200 Subject: [PATCH] Use module config_source if it is set. If the caller defines config_source, it should be used. The original code would ALWAYS use puppet:///modules/${module_name}/${pureftpd::params::config_source} and never $pureftpd::config_source. --- manifests/config.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/config.pp b/manifests/config.pp index 19c3596..a4f56b7 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -6,7 +6,7 @@ class pureftpd::config { force => true, owner => root, group => root, - source => $source ? { + source => $pureftpd::config_source ? { undef => "puppet:///modules/${module_name}/${pureftpd::params::config_source}", default => $pureftpd::config_source, },