diff options
author | Liam Fallon <liam.fallon@est.tech> | 2022-03-24 09:17:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-03-24 09:17:33 +0000 |
commit | 209e2e6843ef0057f5ba2b371bcd0cf2769456d9 (patch) | |
tree | b916e5cae2a8ce6ff69181ee41b960602d2bdd5c /csit/prepare-config-files.py | |
parent | 93d4ee603e563d292845e12b85811bd9e8c42d44 (diff) | |
parent | 264245051507c7446d1c407ff04063ec1193262b (diff) |
Merge "Added scripts for manual smoke testing"
Diffstat (limited to 'csit/prepare-config-files.py')
-rwxr-xr-x | csit/prepare-config-files.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/csit/prepare-config-files.py b/csit/prepare-config-files.py index 977df556..4eaa3422 100755 --- a/csit/prepare-config-files.py +++ b/csit/prepare-config-files.py @@ -30,6 +30,7 @@ if __name__ == '__main__': https_enabled = parser.parse_args().https message_router_port = '3905' if https_enabled == "true" else '3904' + protocol = 'https://' if https_enabled == "true" else 'http://' current_dir = os.getcwd() config_dir = current_dir + "/config/" @@ -44,6 +45,7 @@ if __name__ == '__main__': with open(file, 'r+') as f: content = f.read() new_content = content.replace("{{HTTPS_ENABLED}}", https_enabled) + new_content = new_content.replace("{{PROTOCOL}}", protocol) new_content = new_content.replace("{{MESSAGE_ROUTER_PORT}}", message_router_port) if new_content != content: |