Skip to content

Commit

Permalink
Remove left over code.
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch authored and thatch45 committed Mar 13, 2013
1 parent 355a4ab commit 667fb0e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions salt/utils/minions.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,24 +130,6 @@ def _check_grain_minions(self, expr):
# Still no match!? Remove the minion id from the list
minions.remove(id_)

if isinstance(match, list):
# We are matching a single component to a single list
# member
member_matched = False
for member in match:
if fnmatch.fnmatch(str(member).lower(),
comps[1].lower()):
member_matched = True
break
else:
minions.remove(id_)
if member_matched:
continue
if fnmatch.fnmatch(str(match.lower()), comps[1].lower()):
continue

minions.remove(id_)

return list(minions)

def _check_grain_pcre_minions(self, expr):
Expand Down

0 comments on commit 667fb0e

Please sign in to comment.