Describe the bug
pySMART fails to create Device if device is nvme when using the latest version of smartmontools (release 7.4).
Raw outputssmartctl -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'- -'
:https://github.com/truenas/py-SMART/blob/1c7d32c2363d20a91d6cf5d5ec0261fee25e8531/pySMART/interface/nvme/__init__.py#L740-L742
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.