aboutsummaryrefslogtreecommitdiffstats
path: root/installation
diff options
context:
space:
mode:
authortragait <rahul.tyagi@est.tech>2020-03-27 08:18:42 +0000
committerDan Timoney <dtimoney@att.com>2020-03-27 12:26:23 +0000
commit23d60443bef503167cd6534170b08c9cc4501f72 (patch)
treea132404d930a76a1d42abcb7d800bc97ed50fe82 /installation
parentea32d1c99ff79d26bf2382dc61d51ced3c2e7a4a (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: 102920f09d5df217507f59e1c7208b2e9ebf916e
Diffstat (limited to 'installation')
-rw-r--r--installation/sdnc/src/main/scripts/installCerts.py4
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)