mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 08:35:21 +00:00
Merge pull request #20262 from cachedout/tornado_error
If tornado is not installed, raise error that will be seen
This commit is contained in:
commit
b69a46b9ad
@ -19,7 +19,7 @@ try:
|
||||
has_tornado = True
|
||||
except ImportError as err:
|
||||
has_tornado = False
|
||||
logger.info('ImportError! {0}'.format(str(err)))
|
||||
logger.error('ImportError! {0}'.format(str(err)))
|
||||
|
||||
import salt.auth
|
||||
|
||||
@ -37,7 +37,11 @@ def start():
|
||||
'''
|
||||
Start the saltnado!
|
||||
'''
|
||||
from . import saltnado
|
||||
try:
|
||||
from . import saltnado
|
||||
except ImportError:
|
||||
logger.error('ImportError! {0}'.format(str(err)))
|
||||
return None
|
||||
|
||||
mod_opts = __opts__.get(__virtualname__, {})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user