Skip to content

Commit

Permalink
creating dockerfile to test sdx-lc on sdx-continuous-development #100
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarinve committed Nov 9, 2023
1 parent 37c586f commit 092fe4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swagger_server/controllers/topology_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

MANIFEST = os.environ.get("MANIFEST")
OXPO_ID = int(os.environ.get("OXPO_ID"))
SDX_LC_DOMAINS = os.environ.get("SDXLC_DOMAIN")
SDX_LC_DOMAINS = os.environ.get("SDXLC_DOMAINS")
SDXLC_DOMAIN = SDX_LC_DOMAINS.split(",")[OXPO_ID]

# Get DB connection and tables set up.
Expand Down Expand Up @@ -59,7 +59,7 @@ def add_topology(body): # noqa: E501
logger.info(f"SDX_LC domain: {SDXLC_DOMAIN}")
domain_name = find_between(msg_id, "topology:", ".net")
logger.info(f"domain name: {domain_name}")
if domain_name != SDXLC_DOMAIN:
if msg_id != SDXLC_DOMAIN:
logger.debug("Domain name not matching LC domain. Returning 400 status.")
return "Domain name not matching LC domain. Please check again.", 400

Expand Down

0 comments on commit 092fe4c

Please sign in to comment.