Callback logging unification
Callback logs the validations results into '$HOME/validations' if the 'VALIDATIONS_LOG_DIR' environment variable is not set. This brings VC in line with VL. The home folder location is now obtained trought the expansion on of the '~' char. Preventing issues when caused by an unset '$HOME'. Using the insight from the I13ba1b2eb0b11c2aded35b44c7fbae643210a269 by fressi. Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: Ib0e98989d6777aac22c4414b68a7b3e6061aece1
This commit is contained in:
parent
36a2a11205
commit
a43ffef7e7
@ -39,7 +39,7 @@ DOCUMENTATION = '''
|
||||
|
||||
VALIDATIONS_LOG_DIR = os.environ.get(
|
||||
'VALIDATIONS_LOG_DIR',
|
||||
os.environ.get('HOME'))
|
||||
os.path.expanduser('~/validations'))
|
||||
|
||||
|
||||
def current_time():
|
||||
|
Loading…
x
Reference in New Issue
Block a user