make sure *all* ignore_missing slses are catched

previously, only the last statement in top.sls with `ignore_missing:
true` would actually be effective.
This commit is contained in:
Andreas Lutro 2016-01-14 14:18:11 +01:00
parent d5b8776355
commit 2f662bbc8d

View File

@ -395,7 +395,7 @@ class Pillar(object):
if isinstance(comp, six.string_types):
states[comp] = True
if ignore_missing:
self.ignored_pillars[saltenv] = list(states.keys())
self.ignored_pillars[saltenv].extend(states.keys())
top[saltenv][tgt] = matches
top[saltenv][tgt].extend(states)
return self.sort_top_targets(top, orders)