From 83628e7a1c1b37f8460e604cad7d29a37fc2b599 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Sun, 25 May 2025 20:14:43 +1000 Subject: [PATCH] Fix 2304 --- archinstall/lib/models/device_model.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archinstall/lib/models/device_model.py b/archinstall/lib/models/device_model.py index 6d5ef0ae2e..72538f7958 100644 --- a/archinstall/lib/models/device_model.py +++ b/archinstall/lib/models/device_model.py @@ -6,6 +6,7 @@ from enum import Enum from pathlib import Path from typing import NotRequired, TypedDict, override +from uuid import UUID import parted from parted import Disk, Geometry, Partition @@ -871,6 +872,8 @@ class PartitionModification: partuuid: str | None = None uuid: str | None = None + _obj_id: UUID | str = field(init=False) + def __post_init__(self) -> None: # needed to use the object as a dictionary key due to hash func if not hasattr(self, '_obj_id'): @@ -1134,6 +1137,8 @@ class LvmVolume: # mapper device path /dev// dev_path: Path | None = None + _obj_id: uuid.UUID | str = field(init=False) + def __post_init__(self) -> None: # needed to use the object as a dictionary key due to hash func if not hasattr(self, '_obj_id'):