* Commented out the ldap checkup for bug testing

This commit is contained in:
maor.rayzin 2018-08-08 16:38:11 +03:00
parent 3c40fd7cc3
commit 0486b630aa
1 changed files with 2 additions and 2 deletions

View File

@ -162,8 +162,8 @@ class WindowsInfoCollector(InfoCollector):
for wmi_class_name in WMI_CLASSES: for wmi_class_name in WMI_CLASSES:
self.info[wmi_class_name] = self.get_wmi_class(wmi_class_name) self.info[wmi_class_name] = self.get_wmi_class(wmi_class_name)
for wmi_class_name, props in WMI_LDAP_CLASSES.iteritems(): # for wmi_class_name, props in WMI_LDAP_CLASSES.iteritems():
self.info[wmi_class_name] = self.get_wmi_class(wmi_class_name, "//./root/directory/ldap", props) # self.info[wmi_class_name] = self.get_wmi_class(wmi_class_name, "//./root/directory/ldap", props)
def get_wmi_class(self, class_name, moniker="//./root/cimv2", properties=None): def get_wmi_class(self, class_name, moniker="//./root/cimv2", properties=None):
_wmi = wmi.WMI(moniker=moniker) _wmi = wmi.WMI(moniker=moniker)