-
Notifications
You must be signed in to change notification settings - Fork 61
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
routeros_ip_dns_record - field type is missing #150
Comments
The JSON for all the DNS Records Types: |
🎉 This issue has been resolved in version 1.1.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Describe the bug
When creating a record other than an A record the following message will appear after the first apply
│ Warning: Field 'type' not found in the schema
│
│ with routeros_dns_record.vlan-10-dns-spsw301-ipv6,
│ on dns.tf line 6, in resource "routeros_dns_record" "vlan-10-dns-spsw301-ipv6":
│ 6: resource "routeros_dns_record" "vlan-10-dns-spsw301-ipv6" {
│
│ [MikrotikResourceDataToTerraform] The field was lost during the Schema development: ▷ 'type': 'AAAA' ◁
To Reproduce
resource "routeros_dns_record" "ipv6record" {
address = "2001:DB8:1000::1"
name = "test.example.net"
}
Fisrt apply will work fine, any subsequent apply will display this message
Expected behavior
Able to define a type in code. In the current way defining an ipv6 record by just entrering the ipv6 address it will be set to an aaaa record by terraform or mikrotik. This will throw an error in subsequent apply.
For A records a type can be optional, for other types mandatory?
available types:
The text was updated successfully, but these errors were encountered: