polish external auth
This commit is contained in:
parent
857465ce71
commit
9e47e8498f
1 changed files with 3 additions and 6 deletions
|
@ -21,9 +21,7 @@ logger = ioconfig.logger
|
|||
|
||||
def welcome():
|
||||
"""displays motd in log as welcome message"""
|
||||
logger.info('###################################')
|
||||
logger.info('# proxmaster ][ (c) 2015-2016 afx #')
|
||||
logger.info('###################################')
|
||||
|
||||
|
||||
def selector(fn, req, vmid=0):
|
||||
|
@ -76,13 +74,12 @@ def selector(fn, req, vmid=0):
|
|||
body = plugin.vmvnc(vmid)
|
||||
|
||||
except:
|
||||
logger.critical('grid> {} malfunction!'.format(fn))
|
||||
body = '503 Service Unavailable'
|
||||
status = falcon.HTTP_503
|
||||
logger.critical('grid> {} error'.format(fn))
|
||||
status = falcon.HTTP_404
|
||||
raise
|
||||
|
||||
else:
|
||||
logger.info('grid> {} ok'.format(fn))
|
||||
#logger.info('grid> {} ok'.format(fn))
|
||||
status = falcon.HTTP_202
|
||||
|
||||
return status, body
|
||||
|
|
Loading…
Reference in a new issue