Skip to content

Commit

Permalink
Read connection from db
Browse files Browse the repository at this point in the history
  • Loading branch information
congwang09 committed Oct 14, 2024
1 parent af62c81 commit 84c2f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdx_controller/controllers/l2vpn_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ def getconnection_by_id(service_id):
:rtype: Connection
"""

value = get_connection_status(db_instance, service_id)
value = db_instance.read_from_db("connections", service_id)

if not value:
return "Connection not found", 404

return value
return json.loads(value[service_id])


def getconnections(): # noqa: E501
Expand Down

0 comments on commit 84c2f33

Please sign in to comment.