Module: check_mk
Branch: master
Commit: 18670c8d17822378c60d11e9dd0ff76aefb5fb6e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=18670c8d178223…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Mar 14 14:52:07 2013 +0100
get_piggyback_info: fixed crash when no hostname was given
---
modules/check_mk_base.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index fe87abb..2af97bc 100755
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -411,6 +411,8 @@ def get_realhost_info(hostname, ipaddress, check_type,
max_cache_age):
def get_piggyback_info(hostname):
output = ""
+ if not hostname:
+ return output
dir = tmp_dir + "/piggyback/" + hostname
if os.path.exists(dir):
for sourcehost in os.listdir(dir):