]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Fix deprecated empty function
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 28 Apr 2018 13:14:09 +0000 (15:14 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 28 Apr 2018 13:14:45 +0000 (15:14 +0200)
manifests/site.pp
modules/base_installation/manifests/services.pp

index 3d40ad29b31a0c3a861a91135d041f1cb9e57383..11bc9cac5a6c74f606eaa2f072780eef4cdb6c0b 100644 (file)
@@ -1,6 +1,6 @@
 node default {
   lookup('classes').each |$class_name, $class_hash| {
-    if empty($class_hash) {
+    if $class_hash == undef  or empty($class_hash) {
       include $class_name
     } else {
       class { $class_name:
index 57fbfc35b22edcc39a4d7a1e274b1b056a214a95..1659f97f69380fef2b9885e660bc23640e5d6547 100644 (file)
@@ -1,6 +1,6 @@
 class base_installation::services inherits base_installation {
 
-  if (empty($facts["in_chroot"])) {
+  if $facts["in_chroot"] == undef or empty($facts["in_chroot"]) {
     $ensure = "running"
   } else {
     $ensure = undef