-
Notifications
You must be signed in to change notification settings - Fork 34
Error retrieving ID of template: json: cannot unmarshal object into Go struct field alias.childtemplates of type []interface {} #72
Comments
@1605200517 It is likely that the CloudStack you're using is older than the library this provider was generated from. childtemplates exist in the latest releases. |
@greut thank you for quick feedback; please share which library do you mean in your reference. CS API in use is 4.10. Is there no backward compatibility, or is 4.10 out of its scope? |
4.10 doesn't have the The library used by this provider does however, https://godoc.org/github.com/xanzy/go-cloudstack/cloudstack#Template as it's based on CloudStack 4.11 |
from end user point of view, it would be nice to have some sync at terraform init with the provider API; something like
|
@1605200517 Agreed. I see you're familiar with the problems go-cloudstack has https://github.com/xanzy/go-cloudstack/issues I'd fork it and put the |
We can also try to make it backwards compatible as I try to do for most changes like this. But indeed there are some sharp edges coming from both the way I build |
Hi, if someone needs a quick workaround for this. This patch will simply remove the childtemplate code and then the provider works with 4.10 (couldn't upload a .patch file, just rename it). 0001-Remove-ChildTemplate-to-ensure-works-with-CloudStack.txt |
I'm going to close this issue as I'm about to archive this repository. Development of this provider has been moved to the Apache Foundation. Please find the new home for this provider here: https://github.com/apache/cloudstack-terraform-provider |
This issue was originally opened by @1605200517 as hashicorp/terraform#23726. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
No debug output recognizable despite
TF_LOG=trace
.Expected Behavior
Correct execution.
Actual Behavior
Error:
Steps to Reproduce
terraform init
terraform apply
The text was updated successfully, but these errors were encountered: