mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
4eb5bb253b
commit
381820f051
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