Module: check_mk
Branch: master
Commit: 55dc49e85b5405032f786330bc61d203343fcf18
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=55dc49e85b5405…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Tue Apr 26 10:26:48 2016 +0200
fixed bug introduced in werk 3108 that lead to no interfaces being discovered
---
checks/if.include | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/checks/if.include b/checks/if.include
index 2a056a5..e3bdbb2 100644
--- a/checks/if.include
+++ b/checks/if.include
@@ -224,6 +224,10 @@ def inventory_if_common(info, has_nodeinfo = False):
global_seen = set()
pre_inventory = []
+ if not settings_sets:
+ # if there are no settings, use defaults
+ settings_sets.append({})
+
for settings in settings_sets:
uses_description = settings.get('use_desc',
if_inventory_uses_description)
uses_alias = settings.get('use_alias', if_inventory_uses_alias)