Merge pull request #30496 from alprs/fix-ignored_pillars_keyerror

Fix KeyError when adding ignored pillars
This commit is contained in:
Mike Place 2016-01-21 08:51:03 -07:00
commit 56332ca504

View File

@ -395,6 +395,8 @@ class Pillar(object):
if isinstance(comp, six.string_types):
states[comp] = True
if ignore_missing:
if saltenv not in self.ignored_pillars:
self.ignored_pillars[saltenv] = []
self.ignored_pillars[saltenv].extend(states.keys())
top[saltenv][tgt] = matches
top[saltenv][tgt].extend(states)