log if nvme-cli is not installed
This commit is contained in:
parent
749cb381e3
commit
6a19fc67f2
1 changed files with 20 additions and 17 deletions
|
@ -88,6 +88,9 @@ class LSHW():
|
||||||
self.disks.append(d)
|
self.disks.append(d)
|
||||||
|
|
||||||
elif "nvme" in obj["configuration"]["driver"]:
|
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:
|
try:
|
||||||
nvme = json.loads(
|
nvme = json.loads(
|
||||||
subprocess.check_output(
|
subprocess.check_output(
|
||||||
|
|
Loading…
Reference in a new issue