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

severity_threshold_tiers only accepts whole numbers for threshold value #172

Open
sferraroperch opened this issue Oct 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sferraroperch
Copy link

Description

The sub_components.severity_threshold_tiers, threshold attribute only accepts whole numbers while the UI will accept decimals.

Versions

  • Module version [Required]: v1.13.2

  • Terraform version: v1.5.7

  • Provider version(s):v1.5.7

Reproduction Code [Required]

Set the Threshold to a non-whole number:

severity_threshold_tiers = {
"HIGH" = {
severity = "HIGH",
threshold = 0.2
}
"MEDIUM" = {
severity = "MEDIUM",
threshold = 0.1
}
}

Steps to reproduce the behavior:

Perform a terraform plan.

#terraform plan
Planning failed. Terraform encountered an error while generating this plan.

│ Error: Attribute must be a whole number, got 0.1

│ with module.logzio_alert_v2_utilization_alert["Perch"].logzio_alert_v2.perch_logzio_alert_v2,
│ on ../../modules/global/alertv2/alertv2.tf line 16, in resource "logzio_alert_v2" "perch_logzio_alert_v2":
│ 16: sub_components {

Additional context

The sub_components.severity_threshold_tiers, threshold attribute only accepts whole numbers while the UI will accept decimals.

@8naama 8naama added the bug Something isn't working label May 9, 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
Projects
None yet
Development

No branches or pull requests

2 participants