Skip to content

Commit

Permalink
Merge pull request #1291 from vojtechtrefny/main_fix-nvme-availabilit…
Browse files Browse the repository at this point in the history
…y-check

Fix checking for NVMe plugin availability
  • Loading branch information
vojtechtrefny authored Sep 19, 2024
2 parents 312d4da + 66105c0 commit 48d7f58
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 48d7f58

Please sign in to comment.