From 0e9d420d5752fb8cc76e141e572eeb0c1d9cdd5e Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Wed, 11 Jun 2014 14:47:18 +0200 Subject: change custom_config handling in rsyslog::client, refs #78 and #74 --- manifests/client.pp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manifests/client.pp b/manifests/client.pp index c563c71..b065062 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -41,9 +41,10 @@ class rsyslog::client ( $actionfiletemplate = false ) inherits rsyslog { - $content_real = $custom_config ? { - '' => template("${module_name}/client.conf.erb"), - default => template($custom_config), + if $custom_config { + $content_real = template($custom_config), + } else { + $content_real = template("${module_name}/client.conf.erb"), } rsyslog::snippet { $rsyslog::client_conf: -- cgit v1.2.3