]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Syntax fix
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Nov 2011 16:42:52 +0000 (14:42 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Nov 2011 16:42:52 +0000 (14:42 -0200)
manifests/subsystems/domain.pp

index d076052c77417b24b4486192e9c63b8bb72b33a8..436221ab77755ee7aa5ed778ddea959288553700 100644 (file)
@@ -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}":