Skip to content

Commit

Permalink
Fix merge order of options in run_wfunc (fix mine.get issues)
Browse files Browse the repository at this point in the history
This fix issues with mine.get when using salt-ssh (saltstack#36796)

The dict merge order matters and master_opts needs to take precedence in order to mine.get over salt-ssh to work properly.
  • Loading branch information
ptitdoc authored May 3, 2017
1 parent 1c0c53b commit 6b6b742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/client/ssh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,8 @@ def run_wfunc(self):
opts_pkg['grains'][grain] = self.target['grains'][grain]

popts = {}
popts.update(opts_pkg['__master_opts__'])
popts.update(opts_pkg)
popts.update(opts_pkg['__master_opts__'])
pillar = salt.pillar.Pillar(
popts,
opts_pkg['grains'],
Expand Down

0 comments on commit 6b6b742

Please sign in to comment.