Skip to content

Commit

Permalink
fix: Ensure additional_thumbprint validation allows a null value (#26)
Browse files Browse the repository at this point in the history
Thanks to @officel for input

Co-authored-by: NISHIMURA Yoshitaka <[email protected]>
  • Loading branch information
Antvirf and officel authored Mar 27, 2023
1 parent 4299b10 commit 750f0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variable "additional_thumbprints" {
type = list(string)

validation {
condition = length(var.additional_thumbprints) <= 4
condition = var.additional_thumbprints == null ? true : length(var.additional_thumbprints) <= 4
error_message = "Only 4 additional thumbprints can be set, for a maximum of 5 in the OIDC provider."
}
}
Expand Down

0 comments on commit 750f0f6

Please sign in to comment.