diff options
author | tragait <rahul.tyagi@est.tech> | 2020-03-27 08:18:42 +0000 |
---|---|---|
committer | tragait <rahul.tyagi@est.tech> | 2020-03-27 08:20:27 +0000 |
commit | 8786aff1f95d4d170a78636c11a6465e77fe4aab (patch) | |
tree | 96d5f3fbfbdb1f0094fc72b2ea5811106c1fe604 /installation | |
parent | 69188cc2e95748481d7bbbad55c0a636107e4b2e (diff) |
fix for cert log file
This commit fixes the filenotfound
exception for cert log file.
Issue-ID: SDNC-1139
Signed-off-by: tragait <rahul.tyagi@est.tech>
Change-Id: I907b4ef0d8ceec179742662dd66d6d9647669b17
Former-commit-id: bd1c28b5324bdd8ff2c54cecce0a3625e000c49a
Diffstat (limited to 'installation')
-rw-r--r-- | installation/sdnc/src/main/scripts/installCerts.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/installation/sdnc/src/main/scripts/installCerts.py b/installation/sdnc/src/main/scripts/installCerts.py index 8135f600..a2a25d5c 100644 --- a/installation/sdnc/src/main/scripts/installCerts.py +++ b/installation/sdnc/src/main/scripts/installCerts.py @@ -28,7 +28,11 @@ import shutil import subprocess import logging + log_file = '/opt/opendaylight/data/log/installCerts.log' +with open(os.path.join('/opt/opendaylight/data/log', 'installCerts.log'), 'w') as fp: + pass + log_format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s" logging.basicConfig(filename=log_file,level=logging.DEBUG,filemode='w',format=log_format) |