mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #24608 from basepi/salt-ssh.flat.roster.integers.22843
[2015.5] Normalize salt-ssh flat roster minion IDs to strings
This commit is contained in:
commit
832916f49f
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ def targets(tgt, tgt_type='glob', **kwargs):
|
|||
|
||||
rend = salt.loader.render(__opts__, {})
|
||||
raw = compile_template(template, rend, __opts__['renderer'], **kwargs)
|
||||
rmatcher = RosterMatcher(raw, tgt, tgt_type, 'ipv4')
|
||||
conditioned_raw = {}
|
||||
for minion in raw:
|
||||
conditioned_raw[str(minion)] = raw[minion]
|
||||
rmatcher = RosterMatcher(conditioned_raw, tgt, tgt_type, 'ipv4')
|
||||
return rmatcher.targets()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue