Fix ref name for returners

This commit is contained in:
Thomas S Hatch 2011-04-16 21:49:24 -06:00
parent 8889b363a9
commit 604b986be2

View File

@ -135,9 +135,9 @@ class Minion(object):
module.__opts__ = self.opts
except:
continue
if hasattr(module, 'returners'):
if callable(module.returners):
returners[mod] = module.returners
if hasattr(module, 'returner'):
if callable(module.returner):
returners[mod] = module.returner
self.opts['logger'].info('Loaded the following returners: '\
+ str(returners))