Agent: fix a bug in wmi_tools

Fix a bug in wmi connection cleanup where incorrect keys were being used on a dictionary
This commit is contained in:
vakarisz 2022-03-08 11:30:23 +02:00
parent 4832bc12d9
commit afc43ae806
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class WmiTools(object):
for port_map in list(DCOMConnection.PORTMAPS.keys()):
del DCOMConnection.PORTMAPS[port_map]
for oid_set in list(DCOMConnection.OID_SET.keys()):
del DCOMConnection.OID_SET[port_map]
del DCOMConnection.OID_SET[oid_set]
DCOMConnection.OID_SET = {}
DCOMConnection.PORTMAPS = {}