Browse Source

Merge "Make callback write to default if /var/log/validations does not exist"

changes/18/780518/1
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
4c295796b0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      validations_common/callback_plugins/validation_json.py

+ 4
- 1
validations_common/callback_plugins/validation_json.py View File

@ -37,7 +37,10 @@ DOCUMENTATION = '''
VALIDATIONS_LOG_DIR = (os.getenv('VALIDATIONS_LOG_DIR')
if os.getenv('VALIDATIONS_LOG_DIR') else
"/var/log/validations")
('/var/log/validations'
if os.path.exists('/var/log/validations')
and os.access('/var/log/validations', os.W_OK) else
os.getcwd()))
def current_time():


Loading…
Cancel
Save