@@ -305,6 +305,8 @@ func resourceSumologicMonitorsLibraryMonitorRead(d *schema.ResourceData, meta in
305305 schemaInternalNotification := make ([]interface {}, 1 )
306306 internalNotification := make (map [string ]interface {})
307307 internalNotificationDict := n .Notification .(map [string ]interface {})
308+ log .Printf ("internalNotificationDict %v" , internalNotificationDict )
309+ log .Printf ("monitor.Notification %v" , n .Notification )
308310 if internalNotificationDict ["connectionType" ] != nil {
309311 internalNotification ["connection_type" ] = internalNotificationDict ["connectionType" ].(string )
310312 }
@@ -395,12 +397,13 @@ func getNotifications(d *schema.ResourceData) []MonitorNotification {
395397 n := MonitorNotification {}
396398 rawNotificationAction := notificationDict ["notification" ].([]interface {})
397399 notificationActionDict := rawNotificationAction [0 ].(map [string ]interface {})
400+ log .Printf ("[ROHIT DEBUG] notificationActionDict: %v" , notificationActionDict )
398401 if notificationActionDict ["action_type" ].(string ) == "EmailAction" ||
399402 notificationActionDict ["action_type" ].(string ) == "Email" ||
400403 notificationActionDict ["connection_type" ].(string ) == "EmailAction" ||
401404 notificationActionDict ["connection_type" ].(string ) == "Email" {
402405 notificationAction := EmailNotification {}
403- // notificationAction.ActionType = notificationActionDict["action_type"].(string)
406+ notificationAction .ActionType = notificationActionDict ["action_type" ].(string )
404407 notificationAction .ConnectionType = notificationActionDict ["connection_type" ].(string )
405408 notificationAction .Subject = notificationActionDict ["subject" ].(string )
406409 notificationAction .Recipients = notificationActionDict ["recipients" ].([]interface {})
@@ -409,7 +412,7 @@ func getNotifications(d *schema.ResourceData) []MonitorNotification {
409412 n .Notification = notificationAction
410413 } else {
411414 notificationAction := WebhookNotificiation {}
412- // notificationAction.ActionType = notificationActionDict["action_type"].(string)
415+ notificationAction .ActionType = notificationActionDict ["action_type" ].(string )
413416 notificationAction .ConnectionType = notificationActionDict ["connection_type" ].(string )
414417 notificationAction .ConnectionID = notificationActionDict ["connection_id" ].(string )
415418 notificationAction .PayloadOverride = notificationActionDict ["payload_override" ].(string )
0 commit comments