Fix a bug of status page.

This commit is contained in:
zhuyj17 2016-04-18 01:36:00 +08:00
parent 471a7a80a4
commit 4000d4f9d6
1 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ class DockletHttpHandler(http.server.BaseHTTPRequestHandler):
user_info = G_usermgr.selfQuery(cur_user = cur_user)
quotainfo = user_info['data']['groupinfo']
self.response(200, {'success':'true', 'quotainfo':quotainfo})
if not user == 'root':
'''if not user == 'root':
self.response(400, {'success':'false', 'message':'Root Required'})
if cmds[3] == 'clustercnt':
flag = True
@ -395,7 +395,7 @@ class DockletHttpHandler(http.server.BaseHTTPRequestHandler):
else:
self.response(200, {'success':'false','message':result})
else:
self.response(400, {'success':'false', 'message':'not supported request'})
self.response(400, {'success':'false', 'message':'not supported request'})'''
elif cmds[1] == 'listphynodes':
res['allnodes'] = G_nodemgr.get_allnodes()