Skip to content

Commit 1155616

Browse files
Fix panics on alerts resource. (IBM-Cloud#5561)
* fix panic on alert resource * Fix 1429 Fix empty retriggering seconds on alerts resource * update(outgoing webhook): update terraform outgoing webhook to include new fields --------- Co-authored-by: Suruthi Ganesan Kalavathy <[email protected]>
1 parent 3d7eb0c commit 1155616

File tree

3 files changed

+285
-214
lines changed

3 files changed

+285
-214
lines changed

ibm/service/logs/data_source_ibm_logs_outgoing_webhook.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ func DataSourceIbmLogsOutgoingWebhookOutgoingWebhooksV1IbmEventNotificationsConf
167167
modelMap := make(map[string]interface{})
168168
modelMap["event_notifications_instance_id"] = model.EventNotificationsInstanceID.String()
169169
modelMap["region_id"] = *model.RegionID
170-
// if model.SourceID != nil {
171-
// modelMap["source_id"] = *model.SourceID
172-
// }
173-
// if model.SourceName != nil {
174-
// modelMap["source_name"] = *model.SourceName
175-
// }
170+
if model.SourceID != nil {
171+
modelMap["source_id"] = *model.SourceID
172+
}
173+
if model.SourceName != nil {
174+
modelMap["source_name"] = *model.SourceName
175+
}
176176
return modelMap, nil
177177
}

0 commit comments

Comments
 (0)