Normalize salt-ssh flat roster minion IDs to strings

Fixes #22843
This commit is contained in:
Colton Myers 2015-06-11 14:18:04 -06:00
parent 4eb5bb253b
commit 381820f051

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