File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed
tencentcloud/services/tco Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments