Skip to content

Commit 5b31e7a

Browse files
committed
fix: modify startTime, endTime
1 parent 98b3f24 commit 5b31e7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tencentcloud/data_source_tc_monitor_alarm_basic_alarms.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,11 @@ func dataSourceTencentCloudMonitorAlarmBasicAlarmsRead(d *schema.ResourceData, m
273273
paramMap["Module"] = helper.String(v.(string))
274274
}
275275

276-
if v, _ := d.GetOk("start_time"); v != nil {
276+
if v, ok := d.GetOkExists("start_time"); ok {
277277
paramMap["StartTime"] = helper.IntInt64(v.(int))
278278
}
279279

280-
if v, _ := d.GetOk("end_time"); v != nil {
280+
if v, ok := d.GetOkExists("end_time"); ok {
281281
paramMap["EndTime"] = helper.IntInt64(v.(int))
282282
}
283283

0 commit comments

Comments
 (0)