Skip to content

Commit

Permalink
Merge pull request #23227 from rallytime/bp-22808
Browse files Browse the repository at this point in the history
Backport #22808 to 2014.7
  • Loading branch information
jfindlay committed Apr 30, 2015
2 parents 82c22af + d208a00 commit 721cc28
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions salt/roster/flat.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ def ret_pcre_minions(self):
minions[minion] = data
return minions

def ret_list_minions(self):
'''
Return minions that match via list
'''
minions = {}
for minion in self.raw:
if minion in self.tgt:
data = self.get_data(minion)
if data:
minions[minion] = data
return minions

def get_data(self, minion):
'''
Return the configured ip
Expand Down

0 comments on commit 721cc28

Please sign in to comment.