salt/saltapi/config.py
2012-10-09 17:15:40 -06:00

25 lines
426 B
Python

'''
Manage configuration files in salt-api
'''
# Import python libs
import os
# Import salt libs
import salt.config
def api_config(path):
'''
Read in the salt master config file and add additional configs that
need to be stubbed out for salt-api
'''
opts = {}
opts = salt.config.master_config(path)
if 'include' in opts:
opts = salt.config.include_config(opts, path)
return opts