Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the mine and publish combine minion and master opts in salt-ssh #34835

Merged
merged 2 commits into from
Jul 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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