mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #30496 from alprs/fix-ignored_pillars_keyerror
Fix KeyError when adding ignored pillars
This commit is contained in:
commit
56332ca504
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user