Skip to content

Commit 6d1a450

Browse files
authored
Fix 2304 (#3503)
1 parent cdb1deb commit 6d1a450

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

archinstall/lib/models/device_model.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from enum import Enum
77
from pathlib import Path
88
from typing import NotRequired, TypedDict, override
9+
from uuid import UUID
910

1011
import parted
1112
from parted import Disk, Geometry, Partition
@@ -884,6 +885,8 @@ class PartitionModification:
884885
partuuid: str | None = None
885886
uuid: str | None = None
886887

888+
_obj_id: UUID | str = field(init=False)
889+
887890
def __post_init__(self) -> None:
888891
# needed to use the object as a dictionary key due to hash func
889892
if not hasattr(self, '_obj_id'):
@@ -1147,6 +1150,8 @@ class LvmVolume:
11471150
# mapper device path /dev/<vg>/<vol>
11481151
dev_path: Path | None = None
11491152

1153+
_obj_id: uuid.UUID | str = field(init=False)
1154+
11501155
def __post_init__(self) -> None:
11511156
# needed to use the object as a dictionary key due to hash func
11521157
if not hasattr(self, '_obj_id'):

0 commit comments

Comments
 (0)