Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message in tfvars is not ending with a dot or question mark #410

Open
kirantejaj opened this issue Jun 21, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@kirantejaj
Copy link
Contributor

TL;DR

The module is throwing an error - validation error must be at least one full English sentence starting with an upper case letter and ending with a period or question mark.

Expected behavior

Module should work without any such validation errors.

Observed behavior

The module is throwing an error - validation error must be at least one full English sentence starting with an upper case letter and ending with a period or question mark.

Below error message doesn't have . or ? at the end of sentence.
File - https://github.com/terraform-google-modules/terraform-google-vm/blob/master/modules/instance_template/variables.tf

variable "maintenance_interval" {
type = string
description = "Specifies the frequency of planned maintenance events"
default = null
validation {
condition = var.maintenance_interval == null || var.maintenance_interval == "PERIODIC"
error_message = "var.maintenance_interval must be set to null or "PERIODIC""
}
}

Terraform Configuration

It's failing at the time of initialization itself.

Terraform Version

0.14.11

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
1 participant