From fdb5f3fb0b8b6aa6913ddb48d0df3fce078d1c52 Mon Sep 17 00:00:00 2001 From: Nate Johnston Date: Fri, 24 Aug 2018 10:33:19 -0400 Subject: [PATCH] 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 --- gertty/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gertty/config.py b/gertty/config.py index 6af5f59..494c210 100644 --- a/gertty/config.py +++ b/gertty/config.py @@ -49,6 +49,7 @@ class ConfigSchema(object): v.Required('git-root'): str, 'git-url': str, 'log-file': str, + 'lock-file': str, 'socket': str, 'auth-type': v.Any('basic', 'digest', 'form'), }