Module: check_mk
Branch: master
Commit: 37b3c62d062bebc04bb9ca843dc9a87460a03e70
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=37b3c62d062beb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Mar 27 16:35:09 2019 +0100
Minor simplification: Do not use to_dict_config()
Change-Id: Ic257c9bdcae7fa7b8d6fa677631da8f2c19bdc0e
---
cmk/gui/plugins/wato/ac_tests.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/cmk/gui/plugins/wato/ac_tests.py b/cmk/gui/plugins/wato/ac_tests.py
index f8213c1..eb676ff 100644
--- a/cmk/gui/plugins/wato/ac_tests.py
+++ b/cmk/gui/plugins/wato/ac_tests.py
@@ -824,10 +824,7 @@ class ACTestESXDatasources(ACTest):
def execute(self):
all_rules_ok = True
for folder, rule_index, rule in self._get_rules():
- rule_config = rule.to_dict_config()
- vsphere_queries_agent = (rule_config['value'].get('direct')
in [
- 'agent', 'hostsystem_agent'
- ])
+ vsphere_queries_agent = (rule.value.get('direct') in
['agent', 'hostsystem_agent'])
if vsphere_queries_agent:
all_rules_ok = False
yield ACResultCRIT(