Skip to content

Commit

Permalink
fix base verification
Browse files Browse the repository at this point in the history
  • Loading branch information
asbalderson committed Dec 4, 2024
1 parent 7d310cc commit a80dff8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charms/worker/k8s/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ variable "base" {
default = "24.04"

validation {
condition = contains(["20.04", "22.04", "24.04"], var.base)
error_message = "Base must be one of 20.04, 22.04, 24.04"
condition = contains(["ubuntu@20.04", "ubuntu@22.04", "ubuntu@24.04"], var.base)
error_message = "Base must be one of ubuntu@20.04, ubuntu@22.04, ubuntu@24.04"
}
}

Expand Down
4 changes: 2 additions & 2 deletions charms/worker/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ variable "base" {
default = "24.04"

validation {
condition = contains(["20.04", "22.04", "24.04"], var.base)
error_message = "Base must be one of 20.04, 22.04, 24.04"
condition = contains(["ubuntu@20.04", "ubuntu@22.04", "ubuntu@24.04"], var.base)
error_message = "Base must be one of ubuntu@20.04, ubuntu@22.04, ubuntu@24.04"
}
}

Expand Down

0 comments on commit a80dff8

Please sign in to comment.