aboutsummaryrefslogtreecommitdiffstats
path: root/installation
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-04-01 13:56:51 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-01 13:56:51 +0000
commitdeb729cf3099ad58cb8c243101c37904da4fe349 (patch)
treedebf67829c6117d8f5dbce4dcd7339d17c8abe45 /installation
parentd456643032f4748e60f19f1bab6b58184595f4ad (diff)
parent68aa50c8ee16169173862312b7ee0acd3ec4f94d (diff)
Merge "Modify temp folder for certs"
Former-commit-id: 3615a14d37ba316006827dea2f41f9cb9b2a61e9
Diffstat (limited to 'installation')
-rw-r--r--installation/sdnc/src/main/scripts/installCerts.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/installation/sdnc/src/main/scripts/installCerts.py b/installation/sdnc/src/main/scripts/installCerts.py
index a2a25d5c..a8133d5f 100644
--- a/installation/sdnc/src/main/scripts/installCerts.py
+++ b/installation/sdnc/src/main/scripts/installCerts.py
@@ -36,7 +36,7 @@ with open(os.path.join('/opt/opendaylight/data/log', 'installCerts.log'), 'w') a
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 = []
@@ -230,10 +230,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):