Skip to content

Commit

Permalink
Fix checking for NVMe plugin availability
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Sep 30, 2024
1 parent 49d1209 commit 3f7adcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blivet/nvme.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ def available(self):
return False
if not hasattr(blockdev.NVMETech, "FABRICS"):
return False
try:
blockdev.nvme.is_tech_avail(blockdev.NVMETech.FABRICS, 0) # pylint: disable=no-member
except (blockdev.BlockDevNotImplementedError, blockdev.NVMEError):
return False
return True

def startup(self):
Expand Down

0 comments on commit 3f7adcd

Please sign in to comment.