You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
pySMART fails to create Device if device is nvme when using the latest version of smartmontools (release 7.4).
Raw outputs smartctl -d nvme --all <device> works fine to retrieve information about the device, but the new smartmontools release changes the output format of the self-test log causing the regex in pySMART to return an unexpected value.
The following code then behaves unexpectedly as it expects '-' while the greedy regex match returns '- -':
Describe the bug
pySMART fails to create Device if device is nvme when using the latest version of smartmontools (release 7.4).
Raw outputs
smartctl -d nvme --all <device>
works fine to retrieve information about the device, but the new smartmontools release changes the output format of the self-test log causing the regex in pySMART to return an unexpected value.The following code then behaves unexpectedly as it expects
'-'
while the greedy regex match returns'- -'
:py-SMART/pySMART/interface/nvme/__init__.py
Lines 740 to 742 in 1c7d32c
Environmental setup:
v1.2.0
]Additional context
The old smartmontools output is given by:
while the new output is:
There is an additional column
Seg
in the new output, which the pySMART code does not expect.The text was updated successfully, but these errors were encountered: