From: Silvio Rhatto Date: Fri, 25 Nov 2011 16:42:52 +0000 (-0200) Subject: Syntax fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=351961dfdd6df0dc889b3ebddfad1981aa8a4a5c;p=puppet-nodo.git Syntax fix --- diff --git a/manifests/subsystems/domain.pp b/manifests/subsystems/domain.pp index d076052..436221a 100644 --- a/manifests/subsystems/domain.pp +++ b/manifests/subsystems/domain.pp @@ -17,9 +17,13 @@ class domain { $cert_check = "/usr/local/bin/domain-check -a -q -x ${interval} -e ${email}" - $command = $file ? { - true => "$cert_check -f ${file}", - false,default => "$cert_check -d ${name}", + case $file { + true: { + $command = "$cert_check -f ${file}", + } + false, default: { + $command = "$cert_check -d ${name}", + } } cron { "domain-check-${name}":