From: Ismaƫl Bouya Date: Sat, 28 Apr 2018 13:14:09 +0000 (+0200) Subject: Fix deprecated empty function X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPuppet.git;a=commitdiff_plain;h=5d110ba1a1e8b2e0e7ab2cb0499940df86aebad3 Fix deprecated empty function --- diff --git a/manifests/site.pp b/manifests/site.pp index 3d40ad2..11bc9ca 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -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: diff --git a/modules/base_installation/manifests/services.pp b/modules/base_installation/manifests/services.pp index 57fbfc3..1659f97 100644 --- a/modules/base_installation/manifests/services.pp +++ b/modules/base_installation/manifests/services.pp @@ -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