Skip to content

Commit

Permalink
use max
Browse files Browse the repository at this point in the history
  • Loading branch information
SK1Y101 committed Jun 27, 2024
1 parent 5374baa commit 3a41a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud/etc/deploy-haproxy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "juju_application" "haproxy" {
}

resource "juju_application" "keepalived" {
count = length(var.virtual_ip) > 0 ? 1 : 0
count = max(length(var.virtual_ip), 1)
name = "keepalived"
model = data.juju_model.machine_model.name

Expand All @@ -63,7 +63,7 @@ resource "juju_application" "keepalived" {
}

resource "juju_integration" "maas-region-haproxy" {
count = length(var.virtual_ip) > 0 ? 1 : 0
count = max(length(var.virtual_ip), 1)
model = data.juju_model.machine_model.name

application {
Expand Down

0 comments on commit 3a41a8c

Please sign in to comment.