Open cyberworm54 opened 2 years ago
@cyberworm54
It turned out in my case, that changing the attribute type of attributes.cpu
from object {}
to an array of objects [{}]
in the state file, solved the problem.
Eg.
{
"cpu": {"mode": "host-passthrough"}
}
To:
{
"cpu": [ {"mode": "host-passthrough"} ]
}
This seems to be a breaking change in the state syntax, which is not converted when upgrading the provider.
Do not forget to backup your state file before you edit it.
Yep, that worked. Thank you so much for the help ! @sspreitzer
@dmacvicar fyi
Linux distribution
Fedora 35
Terraform version
Provider and libvirt versions
Checklist
[x] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
[x] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:
Description of Issue/Question
provider registry.terraform.io/dmacvicar/libvirt v0.6.11 gives an error stating
Error: missing expected [
Steps to Reproduce Issue
terraform plan
Additional information:
Do` you have SELinux or Apparmor/Firewall enabled? Some special configuration? no Have you tried to reproduce the issue without them enabled? n/a