mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2017.7' into fix-add-saltenv-pillarenv-to-pillar-item
This commit is contained in:
commit
6d5b2068aa
1 changed files with 14 additions and 1 deletions
|
@ -53,7 +53,7 @@ import salt.ext.six as six
|
|||
from salt.ext.six.moves import input # pylint: disable=import-error,redefined-builtin
|
||||
try:
|
||||
import saltwinshell
|
||||
HAS_WINSHELL = False
|
||||
HAS_WINSHELL = True
|
||||
except ImportError:
|
||||
HAS_WINSHELL = False
|
||||
try:
|
||||
|
@ -470,6 +470,19 @@ class SSH(object):
|
|||
self.targets[host][default] = self.defaults[default]
|
||||
if 'host' not in self.targets[host]:
|
||||
self.targets[host]['host'] = host
|
||||
if self.targets[host].get('winrm') and not HAS_WINSHELL:
|
||||
returned.add(host)
|
||||
rets.add(host)
|
||||
log_msg = 'Please contact sales@saltstack.com for access to the enterprise saltwinshell module.'
|
||||
log.debug(log_msg)
|
||||
no_ret = {'fun_args': [],
|
||||
'jid': None,
|
||||
'return': log_msg,
|
||||
'retcode': 1,
|
||||
'fun': '',
|
||||
'id': host}
|
||||
yield {host: no_ret}
|
||||
continue
|
||||
args = (
|
||||
que,
|
||||
self.opts,
|
||||
|
|
Loading…
Add table
Reference in a new issue