mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Make sure the pidfile and log_file values are overriden by api opts
This commit is contained in:
parent
04d307f917
commit
1f6b540e46
@ -3321,6 +3321,12 @@ def api_config(path):
|
||||
# Let's override them with salt's master opts
|
||||
opts.update(client_config(path, defaults=DEFAULT_MASTER_OPTS))
|
||||
|
||||
# Let's set the pidfile and log_file values in opts to api settings
|
||||
opts.update({
|
||||
'pidfile': opts.get('api_pidfile', DEFAULT_API_OPTS['api_pidfile']),
|
||||
'log_file': opts.get('api_logfile', DEFAULT_API_OPTS['api_logfile']),
|
||||
})
|
||||
|
||||
prepend_root_dir(opts, [
|
||||
'api_pidfile',
|
||||
'api_logfile',
|
||||
|
Loading…
Reference in New Issue
Block a user