summaryrefslogtreecommitdiff
path: root/manifests/agent.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/agent.pp')
-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: {}