Skip to content

Commit

Permalink
Use 201
Browse files Browse the repository at this point in the history
  • Loading branch information
congwang09 committed Oct 25, 2024
1 parent a4bca1c commit 0ff347e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdx_controller/controllers/l2vpn_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def place_connection(body):
db_instance.add_key_value_pair_to_db(
"connections", service_id, json.dumps(body)
)
# Service created successfully
code = 201

logger.info(
f"place_connection result: ID: {service_id} reason='{reason}', code={code}"
Expand Down Expand Up @@ -207,6 +209,7 @@ def patch_connection(service_id, body=None): # noqa: E501
db_instance.add_key_value_pair_to_db(
"connections", service_id, json.dumps(body)
)
code = 201
logger.info(
f"place_connection result: ID: {service_id} reason='{reason}', code={code}"
)
Expand Down

0 comments on commit 0ff347e

Please sign in to comment.