Skip to content

Commit 094d656

Browse files
authored
fix: (IAC-905): Change multi-line error message to single line message (#281)
1 parent 6ccaddd commit 094d656

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

variables.tf

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -497,29 +497,23 @@ variable "log_analytics_solution_promotion_code" {
497497
## Azure Monitor Diagonostic setting - Undocumented
498498
variable "resource_log_category" {
499499
type = list(string)
500-
description = "List of all resource logs category types supported in Azure Monitor. See https://learn.microsoft.com/en-us/azure/aks/monitor-aks-reference#resource-logs "
500+
description = "List of all resource logs category types supported in Azure Monitor. See https://learn.microsoft.com/en-us/azure/aks/monitor-aks-reference#resource-logs."
501501
default = ["kube-controller-manager", "kube-apiserver", "kube-scheduler"]
502502

503503
validation {
504504
condition = length(var.resource_log_category) > 0
505-
error_message = <<EOT
506-
Please specify at least one resource log category. See the list of all resource logs category types
507-
supported in Azure Monitor here: https://learn.microsoft.com/en-us/azure/aks/monitor-aks-reference#resource-logs
508-
EOT
505+
error_message = "Please specify at least one resource log category. See the list of all resource logs category types supported in Azure Monitor here: https://learn.microsoft.com/en-us/azure/aks/monitor-aks-reference#resource-logs."
509506
}
510507
}
511508

512509
variable "metric_category" {
513510
type = list(string)
514-
description = "List of all metric category types supported in Azure Monitor. See https://learn.microsoft.com/en-us/azure/aks/monitor-aks-reference#metrics"
511+
description = "List of all metric category types supported in Azure Monitor. See https://learn.microsoft.com/en-us/azure/aks/monitor-aks-reference#metrics."
515512
default = ["AllMetrics"]
516513

517514
validation {
518515
condition = length(var.metric_category) > 0
519-
error_message = <<EOT
520-
Please specify at least one metric category. See the list of all platform metrics supported in Azure Monitor
521-
here: https://learn.microsoft.com/en-us/azure/aks/monitor-aks-reference#metrics
522-
EOT
516+
error_message = "Please specify at least one metric category. See the list of all platform metrics supported in Azure Monitor here: https://learn.microsoft.com/en-us/azure/aks/monitor-aks-reference#metrics."
523517
}
524518
}
525519

0 commit comments

Comments
 (0)