X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fsdnc%2Fsrc%2Fmain%2Fscripts%2FinstallCerts.py;h=aaddedffc88d0c4fa9ece3e2f1a61b20f8137d90;hb=20fb86922a6993b14c0ea5edf6d5d3bdc6c9ba1f;hp=8135f6008bcc7f5973e1f1056df22ec50d4581d5;hpb=ccdfcf82e4804febff7597cf87395be2a0b98a46;p=sdnc%2Foam.git diff --git a/installation/sdnc/src/main/scripts/installCerts.py b/installation/sdnc/src/main/scripts/installCerts.py index 8135f600..aaddedff 100644 --- a/installation/sdnc/src/main/scripts/installCerts.py +++ b/installation/sdnc/src/main/scripts/installCerts.py @@ -32,7 +32,7 @@ log_file = '/opt/opendaylight/data/log/installCerts.log' log_format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s" logging.basicConfig(filename=log_file,level=logging.DEBUG,filemode='w',format=log_format) -Path = os.environ['ODL_CERT_DIR'] +Path = "/tmp" zipFileList = [] @@ -226,10 +226,10 @@ def get_pass(file_name): def cleanup(): - for file in os.listdir(Path): - if os.path.isfile(Path + '/' + file): - logging.debug("Cleaning up the file %s", Path + '/'+ file) - os.remove(Path + '/'+ file) + for file in jks_files: + if os.path.isfile(file): + logging.debug("Cleaning up the file %s", file) + os.remove(file) def jks_to_p12(file, password):