Skip to content

Commit

Permalink
Update success code
Browse files Browse the repository at this point in the history
  • Loading branch information
congwang09 committed Oct 24, 2024
1 parent 09af5e5 commit 5eb043b
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 @@ -151,7 +151,7 @@ def place_connection(body):

response = {
"service_id": service_id,
"status": "OK" if code == 200 else "Failure",
"status": "OK" if code == 201 else "Failure",
"reason": reason,
}

Expand Down Expand Up @@ -212,7 +212,7 @@ def patch_connection(service_id, body=None): # noqa: E501
)
response = {
"service_id": service_id,
"status": "OK" if code == 200 else "Failure",
"status": "OK" if code == 201 else "Failure",
"reason": reason,
}
except Exception as e:
Expand Down

0 comments on commit 5eb043b

Please sign in to comment.