Ensure that ext_pillar begins with pillar_override if ext_pillar_first is True

This commit is contained in:
Erik Johnson 2017-02-28 11:46:07 -06:00
parent f951266944
commit 97dd8a13d9

View File

@ -824,7 +824,9 @@ class Pillar(object):
top, top_errors = self.get_top()
if ext:
if self.opts.get('ext_pillar_first', False):
self.opts['pillar'], errors = self.ext_pillar({}, pillar_dirs)
self.opts['pillar'], errors = self.ext_pillar(
self.pillar_override,
pillar_dirs)
self.rend = salt.loader.render(self.opts, self.functions)
matches = self.top_matches(top)
pillar, errors = self.render_pillar(matches, errors=errors)