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