summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sherwood <devcurmudgeon@gmail.com>2020-05-16 09:45:22 +0100
committerPaul Sherwood <devcurmudgeon@gmail.com>2020-05-16 09:45:22 +0100
commit5a8fc2b9a721f57e518f29e8d18c6570436b66f0 (patch)
tree9801ee82f873dd6c845d7885c850d1ca7734c108
parentc792a4d5dc8229cb031e2a250aadff1dfae68c69 (diff)
downloadybd-ps-2020.tar.gz
Don't ignore check-definitions flagps-2020
-rw-r--r--ybd/morphs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ybd/morphs.py b/ybd/morphs.py
index 4e1059d..374c3be 100644
--- a/ybd/morphs.py
+++ b/ybd/morphs.py
@@ -46,12 +46,13 @@ class Morphs(object):
self._fix_keys(data)
self._tidy_and_insert_recursively(data)
+ exit = (config.get('check-definitions') == 'exit')
for x in self._data:
dn = self._data[x]
for field in dn:
if field not in self.fields:
log(dn, 'Invalid field "%s" in' % field, dn['path'],
- exit=True)
+ exit=exit)
def _load(self, path):
'''Load a single definition file as a dict.