summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-07-15 09:35:25 +0200
committervarac <varacanero@zeromail.org>2013-07-15 09:35:25 +0200
commit08dd5bd0187159f3463b270b13ffbda8396df101 (patch)
tree4ad0e22f41db19900a65c6b8be7155ef031d9611
parent16f5c3f315451b1a417be8a05c66d8da9faac71a (diff)
only include host_tags in tags of they are not empty
-rw-r--r--manifests/agent.pp6
1 files changed, 5 insertions, 1 deletions
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
}