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():
|
def welcome():
|
||||||
"""displays motd in log as welcome message"""
|
"""displays motd in log as welcome message"""
|
||||||
logger.info('###################################')
|
|
||||||
logger.info('# proxmaster ][ (c) 2015-2016 afx #')
|
logger.info('# proxmaster ][ (c) 2015-2016 afx #')
|
||||||
logger.info('###################################')
|
|
||||||
|
|
||||||
|
|
||||||
def selector(fn, req, vmid=0):
|
def selector(fn, req, vmid=0):
|
||||||
|
@ -76,13 +74,12 @@ def selector(fn, req, vmid=0):
|
||||||
body = plugin.vmvnc(vmid)
|
body = plugin.vmvnc(vmid)
|
||||||
|
|
||||||
except:
|
except:
|
||||||
logger.critical('grid> {} malfunction!'.format(fn))
|
logger.critical('grid> {} error'.format(fn))
|
||||||
body = '503 Service Unavailable'
|
status = falcon.HTTP_404
|
||||||
status = falcon.HTTP_503
|
|
||||||
raise
|
raise
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logger.info('grid> {} ok'.format(fn))
|
#logger.info('grid> {} ok'.format(fn))
|
||||||
status = falcon.HTTP_202
|
status = falcon.HTTP_202
|
||||||
|
|
||||||
return status, body
|
return status, body
|
||||||
|
|
Loading…
Reference in a new issue