log if nvme-cli is not installed

This commit is contained in:
Cyril Levis 2020-09-30 17:57:34 +02:00
parent 749cb381e3
commit 6a19fc67f2
No known key found for this signature in database
GPG key ID: 8538D68543979A20

View file

@ -88,6 +88,9 @@ class LSHW():
self.disks.append(d)
elif "nvme" in obj["configuration"]["driver"]:
if not is_tool('nvme'):
logging.error('nvme-cli >= 1.0 does not seem to be installed')
else:
try:
nvme = json.loads(
subprocess.check_output(