From 677df0df9e30e76140fd1adaea1c47b2bce9934c Mon Sep 17 00:00:00 2001 From: Ravi Pendurty Date: Tue, 2 May 2023 11:45:34 +0530 Subject: Remove unnecessary code remove unnecessary code Issue-ID: SDNC-1798 Signed-off-by: Ravi Pendurty Change-Id: I7b874b5a77bb92977b3390dfd1913837fe1b954b Signed-off-by: Ravi Pendurty Former-commit-id: 6d9bf54f81dba7b1043395671443774a78d2ac93 --- installation/sdnc-web/src/main/scripts/core.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'installation/sdnc-web') diff --git a/installation/sdnc-web/src/main/scripts/core.py b/installation/sdnc-web/src/main/scripts/core.py index 6bdd4b59..2852379d 100644 --- a/installation/sdnc-web/src/main/scripts/core.py +++ b/installation/sdnc-web/src/main/scripts/core.py @@ -277,12 +277,7 @@ def update_nginx_site_conf(): WEBPROTOCOL=getEnv('WEBPROTOCOL') WEBPORT=getEnv('WEBPORT') SDNRPROTOCOL=getEnv('SDNRPROTOCOL') - SDNCWEBHOST=getEnv('HOSTNAME') SDNRHOST=getEnv('SDNRHOST') - if SDNRHOST == "sdnc.onap": - # Request is from K8s - SDNCWEBHOSTINDEX=SDNCWEBHOST[SDNCWEBHOST.rindex("-")+1:] - SDNRHOST = "sdnc-" + SDNCWEBHOSTINDEX + ".onap" SDNRPORT=getEnv('SDNRPORT') SDNRWEBSOCKETPORT=getEnv('SDNRWEBSOCKETPORT',SDNRPORT) DNS_RESOLVER=getEnv('DNS_RESOLVER') -- cgit 1.2.3-korg