vatesfr / terraform-provider-xenorchestra

Xen Orchestra provider for Terraform
MIT License
150 stars 33 forks source link

Add warning log message when cloud config is malformed (missing required string). #219

Closed ddelnano closed 1 year ago

ddelnano commented 1 year ago

This PR is meant to address #202.

I don't think the XO provider should provide bulletproof validation when there is an official data source for cloudinit, but hopefully this should catch very obvious errors in the cloud config.

Testing

4censord commented 1 year ago

If one uses cloud-configs that are GZIP compressed, or in the mime-multipart format, this also logs this warning now.

ddelnano commented 1 year ago

I removed this temporarily to further investigate to see what it would take to detect gzip compressed or mime-multipart formats.