def bootstrap_app():
 from salt.netapi.rest_cherrypy import app
 import salt.config
 __opts__ = salt.config.client_config(os.environ.get('SALT_MASTER_CONFIG', '/etc/salt/master'))
 return app.get_app(__opts__)

def bootstrap_app ( ) : from salt . netapi . rest_cherrypy import app import salt . config __opts__ = salt . config . client_config ( os . environ . get ( 'SALT_MASTER_CONFIG' , '/etc/salt/master' ) ) return app . get_app ( __opts__ )
grab the opts dict of the master config by trying to import salt .