Skip to content

Commit e6d44f9

Browse files
author
Xiaoli Chan
committed
[connection] add missing function in wmi query
Signed-off-by: Xiaoli Chan <[email protected]>
1 parent ad5deba commit e6d44f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cme/protocols/smb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@ def wmi(self, wmi_query=None, namespace=None):
12481248
iEnumWbemClassObject = iWbemServices.ExecQuery(wmi_query)
12491249
except Exception as e:
12501250
self.logger.fail('Execute WQL error: {}'.format(e))
1251+
dcom.disconnect()
12511252
else:
12521253
self.logger.info(f"Executing WQL syntax: {wmi_query}")
12531254
while True:

0 commit comments

Comments
 (0)