Update index.py

This commit is contained in:
Mr Chen
2018-12-26 18:10:20 +08:00
parent f28784db54
commit 31d4fef0ee
+5
View File
@@ -103,6 +103,11 @@ def projectListDel():
file = getServerDir() + '/' + args['name'] + '.json'
if os.path.exists(file):
content = public.readFile(file)
contentObj = json.loads(content)
asyncUser = contentObj['client_email']
cmd = getServerDir() + '/google-cloud-sdk/bin/'
public.execShell(cmd + 'gcloud auth revoke ' + asyncUser)
public.execShell('rm -rf ' + file)
return 'ok'