Add ability to set lock file in config

The exampkle gertty yaml files indicate that there is a 'lock-file'
parameter per server that allows you to define the location of a
lockfile.  Code to handle that exists in config.py but the option is not
defined in the schema, so errors like this cause the process to exit:

voluptuous.error.MultipleInvalid: extra keys not allowed @ data['servers'][0]['lock-file']

Change-Id: Ia03ed9d2de5d598eeafc6e8ffab30c99bd9fded6
This commit is contained in:
Nate Johnston 2018-08-24 10:33:19 -04:00
parent 1e5fb3c139
commit fdb5f3fb0b
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ class ConfigSchema(object):
v.Required('git-root'): str, v.Required('git-root'): str,
'git-url': str, 'git-url': str,
'log-file': str, 'log-file': str,
'lock-file': str,
'socket': str, 'socket': str,
'auth-type': v.Any('basic', 'digest', 'form'), 'auth-type': v.Any('basic', 'digest', 'form'),
} }