summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Taggart <taggart@riseup.net>2014-11-10 14:47:37 -0800
committerMatt Taggart <taggart@riseup.net>2015-04-16 21:09:05 +0000
commit3736a2b0a2b33bc00231d7222a65ae33af5a43c9 (patch)
treea4af06736d1d9e261cc2bdc61f1b42546bdd2d10
parentd8b9f38af3fb98052abacbdb444bd69567f454af (diff)
make setting host_tags a little safer if we're using the module default of undef
-rw-r--r--manifests/agent.pp6
1 files 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: {}