Skip to content

Commit

Permalink
Merge pull request #1327 from vojtechtrefny/main_mpath-device-id
Browse files Browse the repository at this point in the history
Use just name as device ID for multipath devices (#2327619)
  • Loading branch information
vojtechtrefny authored Dec 16, 2024
2 parents 29d9d4d + 143c5ff commit 6b4be0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blivet/devices/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ def __init__(self, name, fmt=None, size=None, wwn=None,
exists=True)
self.wwn = wwn or None

@property
def device_id(self):
return self.name

@property
def model(self):
if not self.parents:
Expand Down

0 comments on commit 6b4be0d

Please sign in to comment.