From b3644003a84d191be9c3d70730252a46db073851 Mon Sep 17 00:00:00 2001 From: TangBin Date: Tue, 11 Dec 2018 19:47:16 +0800 Subject: [PATCH] delete project bugfix --- pkg/mcclient/modules/mod_projects.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/mcclient/modules/mod_projects.go b/pkg/mcclient/modules/mod_projects.go index d920951482..4e89b08009 100644 --- a/pkg/mcclient/modules/mod_projects.go +++ b/pkg/mcclient/modules/mod_projects.go @@ -241,6 +241,7 @@ func (this *ProjectManagerV3) Delete(session *mcclient.ClientSession, id string, func (this *ProjectManagerV3) DeleteInContexts(session *mcclient.ClientSession, id string, body jsonutils.JSONObject, ctxs []ManagerContext) (jsonutils.JSONObject, error) { if ctxs == nil { p := jsonutils.NewDict() + p.Add(jsonutils.JSONTrue, "admin") p.Add(jsonutils.NewString(id), "tenant") ret, e := Servers.List(session, p) if e != nil {