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

Closed
kirantejaj opened this issue Jun 21, 2024 · 1 comment
Closed
Labels
bug Something isn't working Stale

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

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Aug 20, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

1 participant