mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Added the required attributes for the cmd parser mixins after changes in Salt 0.15.9.
See Salt commitsc3bfde339a
and92da051c00
. Also moved the default logging location to /var/log/salt to bring it inline with the rest of the Salt logs.
This commit is contained in:
parent
dfa3179189
commit
b4928ef555
@ -33,8 +33,13 @@ class SaltAPI(OptionParser, ConfigDirMixIn, LogLevelMixIn, PidfileMixin,
|
||||
|
||||
VERSION = saltapi.version.__version__
|
||||
|
||||
# ConfigDirMixIn config filename attribute
|
||||
_config_filename_ = 'master'
|
||||
# LogLevelMixIn attributes
|
||||
_default_logging_logfile_ = '/var/log/salt/api'
|
||||
|
||||
def setup_config(self):
|
||||
return saltapi.config.api_config(self.get_config_file_path('master'))
|
||||
return saltapi.config.api_config(self.get_config_file_path())
|
||||
|
||||
def run(self):
|
||||
'''
|
||||
|
@ -8,7 +8,7 @@ import salt.config
|
||||
DEFAULT_API_OPTS = {
|
||||
# ----- Salt master settings overridden by Salt-API --------------------->
|
||||
'pidfile': '/var/run/salt-api.pid',
|
||||
'logfile': '/var/log/api',
|
||||
'logfile': '/var/log/salt/api',
|
||||
# <---- Salt master settings overridden by Salt-API ----------------------
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user