wip
This commit is contained in:
parent
67dae6f5e4
commit
2b36992be1
3 changed files with 65 additions and 2 deletions
|
@ -552,11 +552,14 @@ def overview():
|
|||
subnet_data = {
|
||||
'id': subnet.id,
|
||||
'cidr': subnet.cidr,
|
||||
'description': subnet.description,
|
||||
'location': subnet.location,
|
||||
'servers': []
|
||||
}
|
||||
|
||||
# Only add description if it exists as an attribute
|
||||
if hasattr(subnet, 'description'):
|
||||
subnet_data['description'] = subnet.description
|
||||
|
||||
for server in subnet.servers:
|
||||
server_data = {
|
||||
'id': server.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue