Skip to content

Commit 3ce49a6

Browse files
committed
add
1 parent 3c8bf31 commit 3ce49a6

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

tencentcloud/services/tco/resource_tc_organization_external_saml_identity_provider.go

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func resourceTencentCloudOrganizationExternalSamlIdentityProviderCreate(d *schem
167167
d.SetId(zoneId)
168168

169169
// another certificate
170-
if v, ok := d.GetOk("another_certificate_id"); ok {
170+
if v, ok := d.GetOk("another_x509_certificate"); ok {
171171
request := organization.NewAddExternalSAMLIdPCertificateRequest()
172172
response := organization.NewAddExternalSAMLIdPCertificateResponse()
173173
request.ZoneId = &zoneId
@@ -244,24 +244,6 @@ func resourceTencentCloudOrganizationExternalSamlIdentityProviderRead(d *schema.
244244
_ = d.Set("login_url", respData.LoginUrl)
245245
}
246246

247-
if respData.CertificateIds != nil {
248-
tmpCertificateId := d.Get("certificate_id").(string)
249-
tmpAnotherCertificateId := d.Get("another_certificate_id").(string)
250-
if tmpCertificateId != "" || tmpAnotherCertificateId != "" {
251-
for _, item := range respData.CertificateIds {
252-
if item != nil {
253-
if *item == tmpCertificateId {
254-
_ = d.Set("certificate_id", item)
255-
}
256-
257-
if *item == tmpAnotherCertificateId {
258-
_ = d.Set("another_certificate_id", item)
259-
}
260-
}
261-
}
262-
}
263-
}
264-
265247
if respData.CreateTime != nil {
266248
_ = d.Set("create_time", respData.CreateTime)
267249
}

0 commit comments

Comments
 (0)