Skip to content

Commit 158d44b

Browse files
authored
fix: Empty string handling (#2296)
* fix: Empty string handling * fix: Optimize empty string
1 parent 01b9ed9 commit 158d44b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.changelog/2296.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
tencentcloud_ckafka_datahub_task: Optimize `input_value_type` and `input_value` empty string processing
3+
```

tencentcloud/resource_tc_ckafka_datahub_task.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6530,10 +6530,10 @@ func resourceTencentCloudCkafkaDatahubTaskCreate(d *schema.ResourceData, meta in
65306530
if v, ok := analyseMap["regex"]; ok {
65316531
analyseParam.Regex = helper.String(v.(string))
65326532
}
6533-
if v, ok := analyseMap["input_value_type"]; ok {
6533+
if v, ok := analyseMap["input_value_type"]; ok && v != "" {
65346534
analyseParam.InputValueType = helper.String(v.(string))
65356535
}
6536-
if v, ok := analyseMap["input_value"]; ok {
6536+
if v, ok := analyseMap["input_value"]; ok && v != "" {
65376537
analyseParam.InputValue = helper.String(v.(string))
65386538
}
65396539
fieldParam.Analyse = &analyseParam

0 commit comments

Comments
 (0)