fixed adding hosts
This commit is contained in:
parent
12237e8ec7
commit
e088bc47c0
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user