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

routeros_file: Field 'last_modified' not found in the schema #579

Closed
satwell opened this issue Oct 7, 2024 · 1 comment · Fixed by #580
Closed

routeros_file: Field 'last_modified' not found in the schema #579

satwell opened this issue Oct 7, 2024 · 1 comment · Fixed by #580
Labels
bug Something isn't working Fix the schema released

Comments

@satwell
Copy link

satwell commented Oct 7, 2024

Describe the bug
I get a "field was lost during the Schema development" error about last_modified when using routeros_file.

To Reproduce
I have a routeros_file resource like this:

resource "routeros_file" "server_cert_pem" {
  name     = "server.crt"
  contents = vault_pki_secret_backend_cert.signed_cert.certificate
}

After applying the first time, later runs of terraform apply or terraform plan give me this warning:

│ Warning: Field 'last_modified' not found in the schema
│
│   with routeros_file.server_cert_pem,
│   on certificate.tf line 25, in resource "routeros_file" "server_cert_pem":
│   25: resource "routeros_file" "server_cert_pem" {
│
│ [MikrotikResourceDataToTerraform] The field was lost during the Schema development: ▷ 'last_modified': '2024-10-06
│ 17:25:22' ◁

I'm using version v1.64.2 of this provider. And Mikrotik RouterOS 7.16.

Expected behavior
No warnings.

@vaerh
Copy link
Collaborator

vaerh commented Oct 7, 2024

🎉 This issue has been resolved in version 1.65.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@vaerh vaerh added the released label Oct 7, 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 Fix the schema released
Projects
None yet
2 participants