Browse Source

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
Nate Johnston 8 months ago
parent
commit
fdb5f3fb0b
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      gertty/config.py

+ 1
- 0
gertty/config.py View File

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

Loading…
Cancel
Save