Skip to content

Commit 8fa783a

Browse files
committed
add
1 parent 84b3d38 commit 8fa783a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tencentcloud/provider.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package tencentcloud
33
import (
44
"encoding/json"
55
"fmt"
6-
"io/ioutil"
76
"net/url"
87
"os"
98
"runtime"
@@ -2653,7 +2652,7 @@ func getConfigFromProfile(d *schema.ResourceData, ProfileKey string) (interface{
26532652
providerConfig = make(map[string]interface{})
26542653
_, err = os.Stat(credentialPath)
26552654
if !os.IsNotExist(err) {
2656-
data, err := ioutil.ReadFile(credentialPath)
2655+
data, err := os.ReadFile(credentialPath)
26572656
if err != nil {
26582657
return nil, err
26592658
}
@@ -2673,7 +2672,7 @@ func getConfigFromProfile(d *schema.ResourceData, ProfileKey string) (interface{
26732672

26742673
_, err = os.Stat(configurePath)
26752674
if !os.IsNotExist(err) {
2676-
data, err := ioutil.ReadFile(configurePath)
2675+
data, err := os.ReadFile(configurePath)
26772676
if err != nil {
26782677
return nil, err
26792678
}

0 commit comments

Comments
 (0)