Skip to content

Commit d768a00

Browse files
committed
add
1 parent 509391e commit d768a00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tencentcloud/provider.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2557,7 +2557,9 @@ func getConfigFromProfile(d *schema.ResourceData, ProfileKey string) (interface{
25572557
}
25582558

25592559
for k, v := range config {
2560-
providerConfig[k] = strings.TrimSpace(v.(string))
2560+
if strValue, ok := v.(string); ok {
2561+
providerConfig[k] = strings.TrimSpace(strValue)
2562+
}
25612563
}
25622564
}
25632565

0 commit comments

Comments
 (0)