Skip to content

Commit

Permalink
feature: bcs-user-manager stop list old cluster credentials. issue Te…
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanhe-bupt committed Oct 30, 2020
1 parent 09a1981 commit 4631d3a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ package v1http

import (
"fmt"
"strings"
"time"

"github.com/Tencent/bk-bcs/bcs-common/common"
Expand Down Expand Up @@ -127,7 +126,7 @@ func ListCredentials(request *restful.Request, response *restful.Response) {
}
}

oldCredentials := sqlstore.ListOldCredentials()
/*oldCredentials := sqlstore.ListOldCredentials()
for _, v := range oldCredentials {
oldClusterId := v.ClusterId
array := strings.Split(oldClusterId, "-")
Expand All @@ -139,7 +138,7 @@ func ListCredentials(request *restful.Request, response *restful.Response) {
UserToken: v.UserToken,
ClusterDomain: v.ClusterDomain,
}
}
}*/
data := utils.CreateResponeData(nil, "success", credentials)
response.Write([]byte(data))

Expand Down

0 comments on commit 4631d3a

Please sign in to comment.