Added .part_uuid to MapperDev (#1691)
This commit is contained in:
parent
fdb1b48330
commit
b2fc71c9e5
|
|
@ -24,6 +24,10 @@ class MapperDev:
|
||||||
def path(self):
|
def path(self):
|
||||||
return f"/dev/mapper/{self.mappername}"
|
return f"/dev/mapper/{self.mappername}"
|
||||||
|
|
||||||
|
@property
|
||||||
|
def part_uuid(self):
|
||||||
|
return self.partition.part_uuid
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def partition(self):
|
def partition(self):
|
||||||
from .helpers import uevent, get_parent_of_partition
|
from .helpers import uevent, get_parent_of_partition
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue