From 5ba21b1838af39a4b53f6244644d77e50156918c Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 26 Dec 2018 18:10:20 +0800 Subject: [PATCH] Update index.py --- plugins/gae/index.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/gae/index.py b/plugins/gae/index.py index e0b4c2017..6c18babff 100755 --- a/plugins/gae/index.py +++ b/plugins/gae/index.py @@ -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'