Skip to content

Commit

Permalink
Merge branch '3.9-devel' into 3.10-devel
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Apr 15, 2024
2 parents a333af9 + a91c775 commit 6ab86cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion blivet/populator/helpers/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
from gi.repository import BlockDev as blockdev
from gi.repository import GLib

import uuid

from ... import udev
from ... import util
from ...devices import DASDDevice, DiskDevice, FcoeDiskDevice, iScsiDiskDevice
Expand Down Expand Up @@ -257,10 +259,14 @@ def _get_kwargs(self):
log.debug("Failed to get namespace info for %s: %s", path, str(err))
else:
kwargs["nsid"] = ninfo.nsid
kwargs["uuid"] = ninfo.uuid
kwargs["eui64"] = ninfo.eui64
kwargs["nguid"] = ninfo.nguid

if ninfo.uuid and ninfo.uuid != uuid.UUID(int=0):
kwargs["uuid"] = ninfo.uuid
else:
kwargs["uuid"] = None

log.info("%s is an NVMe local namespace device", udev.device_get_name(self.data))
return kwargs

Expand Down

0 comments on commit 6ab86cb

Please sign in to comment.