mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add roster disable flag
This commit is contained in:
parent
399e9f57cc
commit
c0e5a1171d
1 changed files with 5 additions and 1 deletions
|
@ -22,7 +22,8 @@ class SSHClient(object):
|
|||
'''
|
||||
def __init__(self,
|
||||
c_path=os.path.join(syspaths.CONFIG_DIR, 'master'),
|
||||
mopts=None):
|
||||
mopts=None,
|
||||
disable_custom_roster=False):
|
||||
if mopts:
|
||||
self.opts = mopts
|
||||
else:
|
||||
|
@ -35,6 +36,9 @@ class SSHClient(object):
|
|||
)
|
||||
self.opts = salt.config.client_config(c_path)
|
||||
|
||||
# Salt API should never offer a custom roster!
|
||||
self.opts['__disable_custom_roster'] = disable_custom_roster
|
||||
|
||||
def _prep_ssh(
|
||||
self,
|
||||
tgt,
|
||||
|
|
Loading…
Add table
Reference in a new issue