mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix ssh-salt calls with scan roster for uncached clients
When using salt-ssh with a scanning roster uncached minions lead to a traceback indicating an error creating the Single() object. Fix this error by ensuring that the target dictionary always contains a host key and the appropriate value. Fixes #42588
This commit is contained in:
parent
7d385f8bdc
commit
cd5eb93903
1 changed files with 2 additions and 0 deletions
|
@ -467,6 +467,8 @@ class SSH(object):
|
|||
for default in self.defaults:
|
||||
if default not in self.targets[host]:
|
||||
self.targets[host][default] = self.defaults[default]
|
||||
if 'host' not in self.targets[host]:
|
||||
self.targets[host]['host'] = host
|
||||
args = (
|
||||
que,
|
||||
self.opts,
|
||||
|
|
Loading…
Add table
Reference in a new issue