Fix the mine in salt ssh

This commit is contained in:
Thomas S Hatch 2016-07-20 15:20:22 -06:00 committed by rallytime
parent 5f8370ae8d
commit 3e11e19714

View file

@ -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]