Module: check_mk
Branch: master
Commit: 68ef15c9a71f94f1c56c9ab2101c9a9f3b90f725
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=68ef15c9a71f94…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Mar 23 09:25:38 2015 +0100
cisco_qos: prevent exception
---
checks/cisco_qos | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/cisco_qos b/checks/cisco_qos
index 19f0d18..dbbd7a5 100644
--- a/checks/cisco_qos
+++ b/checks/cisco_qos
@@ -136,7 +136,7 @@ def inventory_cisco_qos(info):
for class_id, class_name in info[2]:
# Get interface ids which use this qos class
for policy_id, objects_id in cisco_qos_get_config_entries_by_class_id(config,
class_id):
- if ifs[policy_id] in if_names:
+ if ifs.get(policy_id) in if_names:
if_name = if_names[ifs[policy_id]]
items += [ ('%s: %s' % (if_name, class_name), {}) ]