mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Moved potential circular import into function
This commit is contained in:
parent
91cfb7d193
commit
c00ecd62ff
@ -43,13 +43,13 @@ import os
|
||||
|
||||
import cherrypy
|
||||
|
||||
from . import app
|
||||
|
||||
def bootstrap_app():
|
||||
'''
|
||||
Grab the opts dict of the master config by trying to import Salt
|
||||
'''
|
||||
from . import app
|
||||
import salt.config
|
||||
|
||||
__opts__ = salt.config.client_config(
|
||||
os.environ.get('SALT_MASTER_CONFIG', '/etc/salt/master'))
|
||||
return app.get_app(__opts__)
|
||||
|
Loading…
Reference in New Issue
Block a user