mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Use syspaths
This commit is contained in:
parent
b8a531a955
commit
dcf6304f0d
@ -90,12 +90,17 @@ def query(url,
|
||||
|
||||
if opts is None:
|
||||
if node == 'master':
|
||||
opts = salt.config.master_config('/etc/salt/master')
|
||||
opts = salt.config.master_config(
|
||||
os.path.join(syspaths.CONFIG_DIR, 'master')
|
||||
)
|
||||
elif node == 'minion':
|
||||
opts = salt.config.master_config('/etc/salt/minion')
|
||||
opts = salt.config.master_config(
|
||||
os.path.join(syspaths.CONFIG_DIR, 'minion')
|
||||
)
|
||||
else:
|
||||
opts = {}
|
||||
|
||||
|
||||
if requests_lib is None:
|
||||
requests_lib = opts.get('requests_lib', False)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user