From 08dd5bd0187159f3463b270b13ffbda8396df101 Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 15 Jul 2013 09:35:25 +0200 Subject: only include host_tags in tags of they are not empty --- manifests/agent.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/agent.pp b/manifests/agent.pp index 5a7eaf8..5ce0c4b 100644 --- a/manifests/agent.pp +++ b/manifests/agent.pp @@ -15,7 +15,11 @@ class check_mk::agent ( ) { if ( $use_ssh == true ) { - $tags = "$host_tags|$use_ssh_tag" + if ( $host_tags != '' ) { + $tags = "${host_tags}|${use_ssh_tag}" + } else { + $tags = $use_ssh_tag + } } else { $tags = $host_tags } -- cgit v1.2.3