add() when test=True result should be True.

This commit is contained in:
Gareth J. Greenaway 2015-04-22 18:05:30 -07:00
parent 8cea3ac2b0
commit 664a249f13

View File

@ -351,6 +351,7 @@ def add(name, **kwargs):
if 'test' in kwargs and kwargs['test']:
ret['comment'] = 'Job: {0} would be added to schedule.'.format(name)
ret['result'] = True
else:
try:
eventer = salt.utils.event.get_event('minion', opts=__opts__)