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

Terraform config exports empty object for validate_additional_rrs #1032

Open
peterschretlen opened this issue Dec 23, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@peterschretlen
Copy link
Contributor

What happened:

When exporting the terraform configuration for a DNS check, it contains empty objects for validate_additional_rrs, which fails when trying to import it into terraform. Example export configuration:

      "dns_test_grafana_com": {
        "job": "dns test",
        "target": "grafana.com",
        "enabled": true,
        "probes": [
          1
        ],
        "labels": {},
        "settings": {
          "dns": {
            "ip_version": "V4",
            "server": "dns.google",
            "port": 53,
            "record_type": "A",
            "protocol": "UDP",
            "valid_r_codes": [
              "NOERROR"
            ],
            "validate_answer_rrs": {},
            "validate_authority_rrs": {},
            "validate_additional_rrs": {}
          }
        }
      }
    },

What you expected to happen:

Either the validate_additional_rrs should be empty, or the terraform provider should support importing an empty object.

@peterschretlen peterschretlen added the bug Something isn't working label Dec 23, 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

1 participant