]> gitweb.fluxo.info Git - puppet-certbot.git/commitdiff
Ensure some variables are always defined
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 31 May 2018 11:58:25 +0000 (08:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 31 May 2018 11:58:25 +0000 (08:58 -0300)
manifests/init.pp

index da579ba65feee4c1404d4671dae9a8f9b0622f38..eef61bf348efb6464402b44b45603b8fec307629 100644 (file)
@@ -17,18 +17,30 @@ class certbot(
   if $pre_hook != '' {
     $real_pre_hook = "--pre-hook \"${pre_hook}\""
   }
+  else {
+    $real_pre_hook = ''
+  }
 
   if $post_hook != '' {
     $real_post_hook = "--post-hook \"${post_hook}\""
   }
+  else {
+    $real_post_hook = ''
+  }
 
   if $pre_command != '' {
     $real_pre_command = "${pre_command} &&"
   }
+  else {
+    $real_pre_command = ''
+  }
 
   if $post_command != '' {
     $real_post_command = "&& ${post_command}"
   }
+  else {
+    $real_post_command = ''
+  }
 
   # Certbot support
   file { $basedir: