Use syspaths

This commit is contained in:
Joseph Hall 2015-01-21 10:17:57 -07:00
parent b8a531a955
commit dcf6304f0d

View File

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