Skip to content

Fix a bug in 01-variables.tf - #1

Open
sgkevin1980 wants to merge 1 commit into
mainfrom
sgkevin1980-patch-1
Open

Fix a bug in 01-variables.tf#1
sgkevin1980 wants to merge 1 commit into
mainfrom
sgkevin1980-patch-1

Conversation

@sgkevin1980

Copy link
Copy Markdown

The logic to validate variable "subnet_cidr_size" has a bug. Terraform doesn't short-circuit the || operator, so when var.subnet_cidr_size is null, it still tries to evaluate null > 16, which will fail.

The logic to validate variable "subnet_cidr_size" has a bug. Terraform doesn't short-circuit the || operator, so when var.subnet_cidr_size is null, it still tries to evaluate null > 16, which will fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant