Skip to content

Commit

Permalink
Merge pull request #34994 from rallytime/bp-34835
Browse files Browse the repository at this point in the history
Back-port #34835 to 2015.8
  • Loading branch information
Nicole Thomas authored Jul 27, 2016
2 parents b58c663 + 9268a79 commit 837bc6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion salt/client/ssh/wrapper/mine.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def get(tgt, fun, expr_form='glob', roster='flat'):
salt-ssh '*' mine.get '192.168.5.0' network.ipaddrs roster=scan
'''
# Set up opts for the SSH object
opts = copy.deepcopy(__opts__)
opts = copy.deepcopy(__context__['master_opts'])
minopts = copy.deepcopy(__opts__)
opts.update(minopts)
if roster:
opts['roster'] = roster
opts['argv'] = [fun]
Expand Down
4 changes: 3 additions & 1 deletion salt/client/ssh/wrapper/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def _publish(tgt,
arg = []

# Set up opts for the SSH object
opts = copy.deepcopy(__opts__)
opts = copy.deepcopy(__context__['master_opts'])
minopts = copy.deepcopy(__opts__)
opts.update(minopts)
if roster:
opts['roster'] = roster
if timeout:
Expand Down

0 comments on commit 837bc6b

Please sign in to comment.