This commit is contained in:
pika 2025-04-03 14:45:45 +02:00
parent 67dae6f5e4
commit 2b36992be1
3 changed files with 65 additions and 2 deletions

View file

@ -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,