OpenNebula / terraform-provider-opennebula

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

B-464: enable vm raw section #466

Closed treywelsh closed 1 year ago

treywelsh commented 1 year ago

Community Note

Description

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.

References

Close #464

New or Affected Resource(s)

Checklist

treywelsh commented 1 year ago

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

treywelsh commented 1 year ago

This is not really a bug it's more a feature as I add new attributes in virtual machine resource