Skip to content

Commit

Permalink
Merge pull request #274 from anita-mithran/main
Browse files Browse the repository at this point in the history
Upgrade to 1.0.85 - Failure #270 - fixed
  • Loading branch information
jim-billy-zoho authored Jun 10, 2024
2 parents 7e3ee71 + 94dab80 commit ad535c1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions site24x7/threshold_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,12 @@ func setCronResourceData(d *schema.ResourceData, thresholdProfile *api.Threshold
d.Set("cron_no_run_alert", cronNoRunAlertMap)

cronDurationAlertMap := make(map[string]interface{})
cronDurationAlertMap["trouble"] = int(thresholdProfile.CronDurationAlert["trouble"].(float64))
d.Set("cron_duration_alert", cronDurationAlertMap)
if thresholdProfile.CronDurationAlert["trouble"] == nil {
d.Set("cron_duration_alert", cronDurationAlertMap)
} else {
cronDurationAlertMap["trouble"] = int(thresholdProfile.CronDurationAlert["trouble"].(float64))
d.Set("cron_duration_alert", cronDurationAlertMap)
}
}

func setHeartBeatAttributes(d *schema.ResourceData, thresholdProfile *api.ThresholdProfile) {
Expand Down

0 comments on commit ad535c1

Please sign in to comment.