Change-Id: I6a840ac9d07dcae5c98a5390eee751389c58a007
This commit is contained in:
Fabian Schuetz 2023-06-22 18:22:59 +02:00
parent b6b4a0b41b
commit 7731d0d86f
2 changed files with 16 additions and 16 deletions

View File

@ -1484,7 +1484,7 @@ class WindowsUtils(base.BaseOSUtils):
(out, err, exit_code) = self.execute_powershell_command("wmic "
"logicaldisk get deviceid,filesystem")
LOG.info("Checking if drive %s has CDFS filesystem" % drive)
if code == 0:
if exit_code == 0:
lines = out.decode('ascii').replace('\r\r', '').splitlines()[1:]
for line in lines:
drive_fs = line.split()