Always return a value which evaluates to True when check_cfg succeeds.

This commit is contained in:
Krzysztof Kosiński 2014-01-25 01:35:47 +01:00 committed by Thomas Nagy
parent ca60d62bed
commit 86b87413c8
1 changed files with 2 additions and 0 deletions

View File

@ -386,6 +386,8 @@ def check_cfg(self, *k, **kw):
else:
self.fatal('The configuration failed')
else:
if not ret:
ret = True
kw['success'] = ret
if 'okmsg' in kw:
self.end_msg(self.ret_msg(kw['okmsg'], kw))