mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix the mine in salt ssh
This commit is contained in:
parent
5f8370ae8d
commit
3e11e19714
1 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue