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
parent cb98fcf6cc
commit 303c6113fa
1 changed files with 2 additions and 0 deletions

View File

@ -377,6 +377,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))