Module: check_mk
Branch: master
Commit: 8242786b8d2d30fda29ce09c5e839e3dd786cbcc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8242786b8d2d30…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Apr 9 14:40:55 2014 +0200
f5_bigip_cluster: fixed inventory function
---
checks/f5_bigip_cluster | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/f5_bigip_cluster b/checks/f5_bigip_cluster
index 34f5e32..874379d 100644
--- a/checks/f5_bigip_cluster
+++ b/checks/f5_bigip_cluster
@@ -35,8 +35,8 @@
def inventory_f5_bigip_cluster(info):
# run inventory unless we found a device in unconfigured state
- # don't need to loop over the input as there's only one status.
- if len(info) == 1 and not info[0][0].startswith("-1"):
+ # don't need to loop over the input as there's only one status
+ if len(info) == 1 and not ( info[0][0].startswith("-1") or info[0][0] ==
'' ):
return [(None, None)]
return []