You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A container fails to be created/updated on creation/import.
The root cause is the PVE REST API returning a string vmid instead of an int:
Provider version (ideally it should be the latest version): v0.34.0
Terraform version: v1.6.1
OS (where you run Terraform from): Ubuntu
Error logs (TF_LOG=ERROR terraform apply):
module.container.random_password.container_password: Refreshing state... [id=none]
module.container.proxmox_virtual_environment_container.container: Refreshing state... [id=506]
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: error retrieving container status: failed to decode HTTP GET response (path: nodes/nodelab/lxc/506/status/current) - Reason: json: cannot unmarshal string into Go struct field GetStatusResponseData.data.vmid of type int
│
│ with module.container.proxmox_virtual_environment_container.container,
│ on container/main.tf line 1, in resource "proxmox_virtual_environment_container" "container":
│ 1: resource "proxmox_virtual_environment_container" "container" {
│
╵
The text was updated successfully, but these errors were encountered:
Describe the bug
A container fails to be created/updated on creation/import.
The root cause is the PVE REST API returning a string vmid instead of an int:
To Reproduce
Steps to reproduce the behavior:
Please also provide a minimal Terraform configuration that reproduces the issue.
Expected behavior
Go past the unmarshal error.
Screenshots
N/A
Additional context
TF_LOG=ERROR terraform apply
):The text was updated successfully, but these errors were encountered: