Suggested fix for empty domain (#555)

* Suggested fix for empty domain

Signed-off-by: delphi <cpp.create@gmail.com>

* Added proposed changes

Signed-off-by: delphi <cpp.create@gmail.com>
This commit is contained in:
Pavel Pletenev 2019-05-26 11:28:46 +03:00 committed by Otto Winter
parent df50b95e5a
commit 9ed06444e1
2 changed files with 6 additions and 1 deletions

View file

@ -450,7 +450,9 @@ def validate_config(config):
result.remove_output_path([domain], domain)
# Ensure conf is a list
if not isinstance(conf, list) and conf:
if not conf:
result[domain] = conf = []
elif not isinstance(conf, list):
result[domain] = conf = [conf]
for i, p_config in enumerate(conf):

View file

@ -238,3 +238,6 @@ interval:
interval: 5s
then:
- logger.log: "Interval Run"
display: