def api_config(path):
 opts = DEFAULT_API_OPTS
 opts.update(client_config(path, defaults=DEFAULT_MASTER_OPTS))
 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', 'log_file', 'pidfile'])
 return opts

def api_config ( path ) : opts = DEFAULT_API_OPTS opts . update ( client_config ( path , defaults = DEFAULT_MASTER_OPTS ) ) 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' , 'log_file' , 'pidfile' ] ) return opts
read in the salt master config file and add additional configs that need to be stubbed out for salt-api .