A completely empty config is a valid config

This commit is contained in:
Pim van Pelt
2022-03-15 20:52:09 +00:00
parent c5872880fe
commit 6d3de72c00
3 changed files with 10 additions and 1 deletions

View File

@ -74,6 +74,9 @@ class Validator(object):
def validate(self, yaml):
ret_rv = True
ret_msgs = []
if not yaml:
return ret_rv, ret_msgs
if self.schema:
try:
self.logger.debug("Validating against schema %s" % self.schema)