forked from p15670423/monkey
* Commented out the ldap checkup for bug testing
This commit is contained in:
parent
3c40fd7cc3
commit
0486b630aa
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue