OpenNebula / terraform-provider-opennebula

Terraform provider for OpenNebula
https://www.terraform.io/docs/providers/opennebula/
Mozilla Public License 2.0
63 stars 52 forks source link

F-464: fix vm raw #474

Closed treywelsh closed 1 year ago

treywelsh commented 1 year ago

Community Note

Description

It's an update of PR #466 which was reported as a bug instead of a feature.

This PR add a raw section to the VM schema, and mutualize common code parts with the template resource. Some checks are added for the virtual machine to avoid defining sections like os, graphics, raw etc. via template_section. There's also a bit of refactoring to make the code a bit more easier to understand.

It seems I can't checks keys in vadition functions: template_section: ValidateFunc and ValidateDiagFunc are not yet supported on lists or sets

References

Close #464

New or Affected Resource(s)

Checklist