From: Dan Timoney Date: Tue, 7 Apr 2020 14:45:04 +0000 (+0000) Subject: Merge "Add env needed by installCerts.py to docker-compose.yml" into frankfurt X-Git-Tag: 1.8.1~7 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ea5251fd3e41c241e88ad88c70067179bc5bb1e6;hp=58a114896230cf78fa5e6031d74e3d3f2110c5b1;p=sdnc%2Foam.git Merge "Add env needed by installCerts.py to docker-compose.yml" into frankfurt Former-commit-id: 1aff9ca180f2516190f53eadee4370537e57255d --- diff --git a/installation/sdnc/src/main/scripts/installCerts.py b/installation/sdnc/src/main/scripts/installCerts.py index a8133d5f..ae5d5b3b 100644 --- a/installation/sdnc/src/main/scripts/installCerts.py +++ b/installation/sdnc/src/main/scripts/installCerts.py @@ -221,9 +221,9 @@ def timeIncrement(timePassed): def get_pass(file_name): try: - with open(file_name , 'r') as file_obj: + with open(file_name, 'r') as file_obj: password = file_obj.read().strip() - return password + return "'{}'".format(password) except Exception as e: logging.error("Error occurred while fetching password : %s", e) exit()