fix(python/inventory): add machineClass field

This commit is contained in:
Johannes Kirschbauer
2025-04-09 11:21:16 +02:00
committed by Mic92
parent c49dd6c462
commit 8f6a688336

View File

@@ -16,6 +16,7 @@ class Machine(TypedDict):
deploy: NotRequired[MachineDeploy] deploy: NotRequired[MachineDeploy]
description: NotRequired[str] description: NotRequired[str]
icon: NotRequired[str] icon: NotRequired[str]
machineClass: NotRequired[Literal["nixos", "darwin"]]
name: NotRequired[str] name: NotRequired[str]
tags: NotRequired[list[str]] tags: NotRequired[list[str]]
@@ -29,7 +30,6 @@ Service = dict[str, Any]
class Inventory(TypedDict): class Inventory(TypedDict):
machineClass: NotRequired[dict[str, Any]]
machines: NotRequired[dict[str, Machine]] machines: NotRequired[dict[str, Machine]]
meta: NotRequired[Meta] meta: NotRequired[Meta]
modules: NotRequired[dict[str, Any]] modules: NotRequired[dict[str, Any]]