From e088bc47c035dfc51f4dc0326f0abbf374a18c61 Mon Sep 17 00:00:00 2001 From: Linus Vogel Date: Tue, 12 May 2026 22:04:36 +0200 Subject: [PATCH] fixed adding hosts --- pillar_tool/routers/host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar_tool/routers/host.py b/pillar_tool/routers/host.py index 5e538be..477a965 100644 --- a/pillar_tool/routers/host.py +++ b/pillar_tool/routers/host.py @@ -140,7 +140,7 @@ async def host_add(request: Request, fqdn: str, params: HostCreateParams): # Note: this should be enforced by the database assert len(result) == 1 - parent_id = result[0][0].parent_id + parent_id = result[0][0].id # Create new host with unique ID and hierarchical structure new_host = Host(