diff options
author | esobmar <mariusz.sobucki@est.tech> | 2020-03-30 15:14:19 +0100 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2020-04-01 13:56:58 +0000 |
commit | 2be9f6358e5ba9c07cd9e826429169b238124d4b (patch) | |
tree | 7a6d3fe2b58252141efcd0f58f3b1ceb7f24b88c /installation | |
parent | b2be9a3cac226464c70a07f2f54763c4b15fced6 (diff) |
Modify temp folder for certs
Issue-ID: SDNC-991
Signed-off-by: esobmar <mariusz.sobucki@est.tech>
Change-Id: I0993a8ec1e38faa93f67ad2d2eaad96af7cae4a1
(cherry picked from commit 68aa50c8ee16169173862312b7ee0acd3ec4f94d [formerly 20fb86922a6993b14c0ea5edf6d5d3bdc6c9ba1f])
Former-commit-id: 2947775e852c496db14a983e538fbac8fdcc1481
Diffstat (limited to 'installation')
-rw-r--r-- | installation/sdnc/src/main/scripts/installCerts.py | 10 |
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): |