Windows minion fix (broken on PR #33011) (#33206)
Windows minion fix (broken on PR #33011) (#33206)

* minion.py: fix Windows minion

On Windows, by default, new processes are created to handle new jobs. The
minion instance member, is reconstructed on the new process. However, the
connected state is not being preserved, which prevents the minion from
sending updates on the PUB channel. Add parameter to _target to pass
existing connected state.

PR #33011 added a minion_instance.connected check to _thread_return, which
prevented the minion from returning it's result to the master.

Signed-off-by: Alejandro del Castillo <c09cbcd73cd5840fe009d82a3ad13af11b4d7b46@ni.com>

* _thread_multi_return: add multifunc support to standalone minion

Currently salt-call doesn't have support for multifunc jobs in either
the CLI or the python API. This change add the same logic present in
_thread_return to get the standalone minion to behave correctly, in case
multifunc jobs are support by the Caller class in the future.

Signed-off-by: Alejandro del Castillo <c09cbcd73cd5840fe009d82a3ad13af11b4d7b46@ni.com>

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt