Commit 475eaa03 authored by Matt Traudt's avatar Matt Traudt
Browse files

Move check for more than 0 helpers

If it happens in the config validation, we cannot init sbws since we'll
fail to validate.

Somewhat reverts c52a850b

GH: closes #95
parent 0b67bfcd
......@@ -80,6 +80,8 @@ class HelperRelayList:
assert helper_sec in conf # validate_config should require this
log.debug('Loading info for helper %s', key)
if len(helpers) < 1:
return None, 'No enabled helpers in config'
return HelperRelayList(args, conf, helpers, controller=controller), ''
def _should_perform_reachability_test(self):
......@@ -258,9 +258,6 @@ def _validate_helpers(conf):
assert valid
if section.getboolean(key):
addtional_helper_sections.append('{}.{}'.format(sec, key))
if len(addtional_helper_sections) < 1:
errors.append('Need more than 0 enabled helpers in [{}] section'
fps = {
'relay': {},
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment