Skip to content

Commit

Permalink
fix(better_uptime): handle null verify_ssl (#950)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
NathanFlurry committed Jun 30, 2024
1 parent 08a53e3 commit e9d8edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/tf/better_uptime/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ resource "betteruptime_monitor" "monitor" {
]
email = var.better_uptime_notify
push = var.better_uptime_notify
verify_ssl = try(each.value.monitor.verify_ssl, false)
ssl_expiration = try(each.value.monitor.verify_ssl, false) ? 14 : null
verify_ssl = try(each.value.monitor.verify_ssl == true, false)
ssl_expiration = try(each.value.monitor.verify_ssl == true, false) ? 14 : null
}

resource "betteruptime_status_page_resource" "status_page_resource" {
Expand Down

0 comments on commit e9d8edb

Please sign in to comment.