From 23d60443bef503167cd6534170b08c9cc4501f72 Mon Sep 17 00:00:00 2001 From: tragait Date: Fri, 27 Mar 2020 08:18:42 +0000 Subject: [PATCH] fix for cert log file This commit fixes the filenotfound exception for cert log file. Issue-ID: SDNC-1139 Signed-off-by: tragait Change-Id: I907b4ef0d8ceec179742662dd66d6d9647669b17 Former-commit-id: 102920f09d5df217507f59e1c7208b2e9ebf916e --- installation/sdnc/src/main/scripts/installCerts.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.16.6