From 3736a2b0a2b33bc00231d7222a65ae33af5a43c9 Mon Sep 17 00:00:00 2001 From: Matt Taggart Date: Mon, 10 Nov 2014 14:47:37 -0800 Subject: make setting host_tags a little safer if we're using the module default of undef --- manifests/agent.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/agent.pp b/manifests/agent.pp index 9a365a3..e34a293 100644 --- a/manifests/agent.pp +++ b/manifests/agent.pp @@ -26,10 +26,10 @@ class check_mk::agent ( include check_mk::agent::service } 'ssh': { - if ( $host_tags != '' ) { - $tags = "${host_tags}|${use_ssh_tag}" - } else { + if ( $host_tags == undef ) or ( $host_tags == '' ) { $tags = $use_ssh_tag + } else { + $tags = "${host_tags}|${use_ssh_tag}" } } default: {} -- cgit v1.2.3