From 5d110ba1a1e8b2e0e7ab2cb0499940df86aebad3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 28 Apr 2018 15:14:09 +0200 Subject: [PATCH] Fix deprecated empty function --- manifests/site.pp | 2 +- modules/base_installation/manifests/services.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.41.0