mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
82c22afacc
commit
dd57f2d1c1
1 changed files with 13 additions and 0 deletions
|
@ -74,6 +74,19 @@ class RosterMatcher(object):
|
|||
minions[minion] = data
|
||||
return minions
|
||||
|
||||
def ret_list_minions(self):
|
||||
'''
|
||||
Return minions that match via list
|
||||
'''
|
||||
minions = []
|
||||
targets = self.tgt.split(',')
|
||||
for minion in self.raw:
|
||||
if minion in targets:
|
||||
data = self.get_data(minion)
|
||||
if data:
|
||||
minions[minion] = data
|
||||
return minions
|
||||
|
||||
def get_data(self, minion):
|
||||
'''
|
||||
Return the configured ip
|
||||
|
|
Loading…
Add table
Reference in a new issue