fixed adding hosts

This commit is contained in:
Linus Vogel 2026-05-12 22:04:36 +02:00
parent 12237e8ec7
commit e088bc47c0

View File

@ -140,7 +140,7 @@ async def host_add(request: Request, fqdn: str, params: HostCreateParams):
# Note: this should be enforced by the database # Note: this should be enforced by the database
assert len(result) == 1 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 # Create new host with unique ID and hierarchical structure
new_host = Host( new_host = Host(