aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-28 15:14:09 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-28 15:14:45 +0200
commit5d110ba1a1e8b2e0e7ab2cb0499940df86aebad3 (patch)
tree11426d8a18edbb1e6566d89895486f62e0c240b9
parent036a3f5ce06a3203325915b90e25f961e47d8fc0 (diff)
downloadPuppet-5d110ba1a1e8b2e0e7ab2cb0499940df86aebad3.tar.gz
Puppet-5d110ba1a1e8b2e0e7ab2cb0499940df86aebad3.tar.zst
Puppet-5d110ba1a1e8b2e0e7ab2cb0499940df86aebad3.zip
Fix deprecated empty function
-rw-r--r--manifests/site.pp2
-rw-r--r--modules/base_installation/manifests/services.pp2
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 @@
1node default { 1node default {
2 lookup('classes').each |$class_name, $class_hash| { 2 lookup('classes').each |$class_name, $class_hash| {
3 if empty($class_hash) { 3 if $class_hash == undef or empty($class_hash) {
4 include $class_name 4 include $class_name
5 } else { 5 } else {
6 class { $class_name: 6 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 @@
1class base_installation::services inherits base_installation { 1class base_installation::services inherits base_installation {
2 2
3 if (empty($facts["in_chroot"])) { 3 if $facts["in_chroot"] == undef or empty($facts["in_chroot"]) {
4 $ensure = "running" 4 $ensure = "running"
5 } else { 5 } else {
6 $ensure = undef 6 $ensure = undef