Skip to content

Commit 0852bfc

Browse files
committed
add
1 parent 7a86856 commit 0852bfc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tencentcloud/provider.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2325,7 +2325,10 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
23252325
// get auth from CAM role name
23262326
if camRoleName != "" {
23272327
needSecret = false
2328-
_ = genClientWithCAM(&tcClient, camRoleName)
2328+
err := genClientWithCAM(&tcClient, camRoleName)
2329+
if err != nil {
2330+
return nil, fmt.Errorf("Get auth from CAM role name failed. Reason: %s", err.Error())
2331+
}
23292332
}
23302333

23312334
var (

0 commit comments

Comments
 (0)