Skip to content

Commit

Permalink
Fix panics on alerts resource. (#5561)
Browse files Browse the repository at this point in the history
* 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 <Suruthi.G.K@ibm.com>
  • Loading branch information
kavya498 and Suruthi-G-K authored Aug 20, 2024
1 parent 3d7eb0c commit 1155616
Show file tree
Hide file tree
Showing 3 changed files with 285 additions and 214 deletions.
12 changes: 6 additions & 6 deletions ibm/service/logs/data_source_ibm_logs_outgoing_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ func DataSourceIbmLogsOutgoingWebhookOutgoingWebhooksV1IbmEventNotificationsConf
modelMap := make(map[string]interface{})
modelMap["event_notifications_instance_id"] = model.EventNotificationsInstanceID.String()
modelMap["region_id"] = *model.RegionID
// if model.SourceID != nil {
// modelMap["source_id"] = *model.SourceID
// }
// if model.SourceName != nil {
// modelMap["source_name"] = *model.SourceName
// }
if model.SourceID != nil {
modelMap["source_id"] = *model.SourceID
}
if model.SourceName != nil {
modelMap["source_name"] = *model.SourceName
}
return modelMap, nil
}
Loading

0 comments on commit 1155616

Please sign in to comment.