mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
add() when test=True result should be True.
This commit is contained in:
parent
8cea3ac2b0
commit
664a249f13
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user