Skip to content

Commit

Permalink
Merge pull request #339 from atlanticwave-sdx/remove-duplicate-servic…
Browse files Browse the repository at this point in the history
…e-id

Do not duplicate service_id when listing connections
  • Loading branch information
congwang09 authored Oct 18, 2024
2 parents ad705e8 + eee8346 commit 5cc5fe8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdx_controller/controllers/l2vpn_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def get_connections(): # noqa: E501
return_values = {}
for connection in values:
service_id = next(iter(connection))
return_values[service_id] = get_connection_status(db_instance, service_id)
return_values[service_id] = get_connection_status(db_instance, service_id)[
service_id
]
return return_values


Expand Down

0 comments on commit 5cc5fe8

Please sign in to comment.