Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
congwang09 committed Aug 30, 2024
1 parent a009ac7 commit fc98a86
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sdx_controller/handlers/connection_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,10 @@ def place_connection(

def remove_connection(self, te_manager, service_id) -> Tuple[str, int]:
te_manager.unreserve_vlan(service_id)
connection_request = self.db_instance.read_from_db(
"connections", service_id
)
connection_request = self.db_instance.read_from_db("connections", service_id)
if not connection_request:
return "Did not find connection request, cannot remove connection", 404

connection_request = connection_request[service_id]

breakdown = self.db_instance.read_from_db("breakdowns", service_id)
Expand Down

0 comments on commit fc98a86

Please sign in to comment.