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:
Colton Myers 2015-06-11 15:35:07 -06:00
commit 832916f49f

View file

@ -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()