Added .part_uuid to MapperDev (#1691)

This commit is contained in:
Anton Hvornum 2023-03-27 13:47:07 +02:00 committed by GitHub
parent fdb1b48330
commit b2fc71c9e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,10 @@ class MapperDev:
def path(self):
return f"/dev/mapper/{self.mappername}"
@property
def part_uuid(self):
return self.partition.part_uuid
@property
def partition(self):
from .helpers import uevent, get_parent_of_partition