mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix state pillar recompilation
This commit is contained in:
parent
ec3a988390
commit
55f2e49637
1 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,11 @@ class SSHState(salt.state.State):
|
|||
# same as during regular operation.
|
||||
popts.update(_opts)
|
||||
popts.update(_opts.get("__master_opts__", {}))
|
||||
# But, salt.state.State takes the parameters for get_pillar from
|
||||
# the opts, so we need to ensure they are correct for the minion.
|
||||
popts["id"] = _opts["id"]
|
||||
popts["saltenv"] = _opts["saltenv"]
|
||||
popts["pillarenv"] = _opts.get("pillarenv")
|
||||
self.opts = popts
|
||||
pillar = super()._gather_pillar()
|
||||
self.opts = _opts
|
||||
|
|
Loading…
Add table
Reference in a new issue