polish external auth

This commit is contained in:
deflax 2016-05-23 01:55:56 +03:00
parent 857465ce71
commit 9e47e8498f

View file

@ -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