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(