Module: check_mk
Branch: master
Commit: 7cb86acd7818d0b515941efa31e636a97e10935d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7cb86acd7818d0…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Nov 7 10:24:49 2017 +0100
Moved group_patterns preparation out of loop
Change-Id: Ic85ce86844f043cbf60f03e3c6a085cfe74aa028
---
checks/if.include | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/checks/if.include b/checks/if.include
index afbc61b..2331844 100644
--- a/checks/if.include
+++ b/checks/if.include
@@ -303,6 +303,8 @@ def inventory_if_common(info, has_nodeinfo = False):
return True
return False
+ group_patterns = _prepare_if_group_patterns_from_conf()
+
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)
@@ -316,10 +318,7 @@ def inventory_if_common(info, has_nodeinfo = False):
# Allow main check to set no port type (e.g. hitachi_hnas_fc_if)
porttypes.append("")
-
pre_inventory_groups = []
- group_patterns = _prepare_if_group_patterns_from_conf()
-
local_seen = set()
have_groups = {}