From: ajay_dp001 Date: Mon, 6 Apr 2020 19:33:28 +0000 (+0530) Subject: Failure encountered while execution of installCerts.py script X-Git-Tag: 1.8.1~8 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=sdnc%2Foam.git;a=commitdiff_plain;h=5091974e31e945d629a0c8ffc477f587c53fa10b Failure encountered while execution of installCerts.py script fails to convert keystore.jks/truststore.jks to keystore.p12/truststore.p12 Issue-ID: SDNC-1150 Signed-off-by: ajay_dp001 Change-Id: I1ef77602b56199ab2c8f9223fdd3c2e6a1878c22 (cherry picked from commit 926b17ef2bd841b4372c701859864c23cd612077 [formerly cb65f50142671a9f8bda4a7a65ead714aae2691a]) Former-commit-id: 17d655f931d3c1f298c9166ac52fec4a1c6b7f97 --- 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()