Skip to content

Commit 3b63613

Browse files
authored
Feat/profile (#2333)
* feat/profile * feat/profile * feat/profile * feat/profile * feat/profile
1 parent 3d19ba1 commit 3b63613

6 files changed

+13
-6
lines changed

.changelog/2333.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
provider: `shared_credentials_dir` Support set Home path, `~/path`.
3+
```

tencentcloud/provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4070,8 +4070,8 @@ func getConfigFromProfile(d *schema.ResourceData, ProfileKey string) (interface{
40704070
configurePath = fmt.Sprintf("%s/.tccli/%s.configure", os.Getenv("USERPROFILE"), profile)
40714071
}
40724072
} else {
4073-
credentialPath = fmt.Sprintf("%s/%s.credential", sharedCredentialsDir, profile)
4074-
configurePath = fmt.Sprintf("%s/%s.configure", sharedCredentialsDir, profile)
4073+
credentialPath = fmt.Sprintf("%s/%s.credential", tmpSharedCredentialsDir, profile)
4074+
configurePath = fmt.Sprintf("%s/%s.configure", tmpSharedCredentialsDir, profile)
40754075
}
40764076

40774077
providerConfig = make(map[string]interface{})

tencentcloud/resource_tc_clb_instance_testing_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package tencentcloud
22

33
import (
4-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
54
"testing"
5+
6+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
67
)
78

89
func TestAccTencentCloudTestingClbInstanceResource_basic(t *testing.T) {

tencentcloud/resource_tc_clb_listener_testing_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package tencentcloud
22

33
import (
4-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
54
"testing"
5+
6+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
67
)
78

89
func TestAccTencentCloudTestingClbListener_basic(t *testing.T) {

tencentcloud/resource_tc_clb_target_group_instance_attachment_testing_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package tencentcloud
22

33
import (
4-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
54
"testing"
5+
6+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
67
)
78

89
func TestAccTencentCloudTestingClbTGAttachmentInstance_basic(t *testing.T) {

tencentcloud/resource_tc_clb_target_group_testing_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package tencentcloud
22

33
import (
4-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
54
"testing"
5+
6+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
67
)
78

89
func TestAccTencentCloudTestingClbTargetGroup_basic(t *testing.T) {

0 commit comments

Comments
 (0)