Closed 4censord closed 2 years ago
Hey @4censord, thanks for reporting this. When you say latest, can you give me a more specific version or commit sha? Looking at the recent commits to the repo, I don't see the offending change so knowing more specifically about when it was introduced will narrow down the number of commits to sort through.
Sorry, yes I really wasn't clear about versions and reproducability
I am running
#terraform --version
Terraform v1.2.3
on linux_amd64
and terraform-provider-xenorchestra
version v0.23.2
Running this terraform config:
terraform {
required_providers {
xenorchestra = {
source = "terra-farm/xenorchestra"
version = "=0.23.2"
}
}
}
resource "xenorchestra_cloud_config" "demo" {
name = "cloud config name"
template = <<EOF
#cloud-config
runcmd:
- [ ls, -l, / ]
- [ sh, -xc, "echo $(date) ': hello world!'" ]
- [ sh, -c, echo "=========hello world'=========" ]
- ls -l /root
EOF
}
Running this against xoa on the stable
channel works flawlessly.
Versions copied from xoa:
But against xoa on the latest
channel fails with
#terraform apply
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# xenorchestra_cloud_config.demo will be created
+ resource "xenorchestra_cloud_config" "demo" {
+ id = (known after apply)
+ name = "cloud config name"
+ template = <<-EOT
#cloud-config
runcmd:
- [ ls, -l, / ]
- [ sh, -xc, "echo $(date) ': hello world!'" ]
- [ sh, -c, echo "=========hello world'=========" ]
- ls -l /root
EOT
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
xenorchestra_cloud_config.demo: Creating...
╷
│ Error: json: cannot unmarshal object into Go value of type bool
│
│ with xenorchestra_cloud_config.demo,
│ on data.tf line 10, in resource "xenorchestra_cloud_config" "demo":
│ 10: resource "xenorchestra_cloud_config" "demo" {
│
╵
The xoa reports the following version:
When changing channels to stable again, everything works as expected again.
This will be released in v0.23.3. I hope to release that sometime this week.
seems like the same issue as #196 and #199
only happens on xoa latest, does not happen on stable