From 96f2641e8bf7c6e80fed94ed8dbb00185e94fa29 Mon Sep 17 00:00:00 2001 From: runzexia Date: Thu, 9 May 2019 18:09:48 +0800 Subject: [PATCH] do not find description Signed-off-by: runzexia --- pkg/models/devops/project_credential_handler.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/models/devops/project_credential_handler.go b/pkg/models/devops/project_credential_handler.go index f70d2e660..86ff42728 100644 --- a/pkg/models/devops/project_credential_handler.go +++ b/pkg/models/devops/project_credential_handler.go @@ -308,10 +308,6 @@ func GetProjectCredential(projectId, credentialId, domain, getContent string) (* value, _ := selection.Attr("value") response.Id = value }) - doc.Find("input[name*=description]").Each(func(i int, selection *goquery.Selection) { - value, _ := selection.Attr("value") - response.Description = value - }) response.KubeconfigCredential = content case CredentialTypeUsernamePassword: content := &UsernamePasswordCredential{} @@ -324,10 +320,6 @@ func GetProjectCredential(projectId, credentialId, domain, getContent string) (* value, _ := selection.Attr("value") response.Id = value }) - doc.Find("input[name*=description]").Each(func(i int, selection *goquery.Selection) { - value, _ := selection.Attr("value") - response.Description = value - }) response.UsernamePasswordCredential = content case CredentialTypeSsh: content := &SshCredential{} @@ -340,10 +332,6 @@ func GetProjectCredential(projectId, credentialId, domain, getContent string) (* value, _ := selection.Attr("value") response.Id = value }) - doc.Find("input[name*=description]").Each(func(i int, selection *goquery.Selection) { - value, _ := selection.Attr("value") - response.Description = value - }) doc.Find("textarea[name*=privateKey]").Each(func(i int, selection *goquery.Selection) { value := selection.Text() content.PrivateKey = value