Skip to content

Commit 67d5a94

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent a7525fc commit 67d5a94

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

otel-linux-standalone/terraform/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,9 @@ variable "obi_config_path" {
136136
description = "Path to the rendered OBI configuration file (obi/obi-config.yaml)."
137137
type = string
138138
default = ""
139+
140+
validation {
141+
condition = !var.enable_obi || var.obi_config_path != ""
142+
error_message = "When enable_obi is true, obi_config_path must be set (for example to the rendered obi/obi-config.yaml)."
143+
}
139144
}

0 commit comments

Comments
 (0)