diff --git a/salt/client/ssh/wrapper/mine.py b/salt/client/ssh/wrapper/mine.py index 224ec35214..3ad815b3eb 100644 --- a/salt/client/ssh/wrapper/mine.py +++ b/salt/client/ssh/wrapper/mine.py @@ -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] diff --git a/salt/client/ssh/wrapper/publish.py b/salt/client/ssh/wrapper/publish.py index d703b1d65c..a2e431b9ff 100644 --- a/salt/client/ssh/wrapper/publish.py +++ b/salt/client/ssh/wrapper/publish.py @@ -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: