Currently if you import a VM, the template attribute will always be an empty string, however, this is a required parameter for the resource. This creates a problem where specifying the correct value causes Terraform to believe that it needs to recreate the resource. The true template value is accessible from the XO api in the other key
Currently if you import a VM, the
template
attribute will always be an empty string, however, this is a required parameter for the resource. This creates a problem where specifying the correct value causes Terraform to believe that it needs to recreate the resource. The truetemplate
value is accessible from the XO api in theother
keyWhen terraform refreshes its state it should read this value and compare the
template
attribute against it.