Skip to content

Commit 23259e5

Browse files
committed
Merge pull request saltstack#18654 from thatch45/func_fail
Add retcode and success to function not found
2 parents 0bed869 + b156cdd commit 23259e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

salt/minion.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,8 @@ def _thread_return(cls, minion_instance, opts, data):
10811081
ret['out'] = 'nested'
10821082
else:
10831083
ret['return'] = '{0!r} is not available.'.format(function_name)
1084+
ret['success'] = False
1085+
ret['retcode'] = 254
10841086
ret['out'] = 'nested'
10851087

10861088
ret['jid'] = data['jid']

0 commit comments

Comments
 (0)