mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-01 11:02:59 +00:00
fix(lxc): unmarshal string/int vmid as int when read container status (#622)
fix(lxc): unmarshal string/int vmid as int Signed-off-by: zamrih <ramzi.hb@gmail.com> Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
parent
21e33d4261
commit
b90445a12c
@ -204,16 +204,16 @@ type GetStatusResponseBody struct {
|
|||||||
|
|
||||||
// GetStatusResponseData contains the data from a container get status response.
|
// GetStatusResponseData contains the data from a container get status response.
|
||||||
type GetStatusResponseData struct {
|
type GetStatusResponseData struct {
|
||||||
CPUCount *float64 `json:"cpus,omitempty"`
|
CPUCount *float64 `json:"cpus,omitempty"`
|
||||||
Lock *string `json:"lock,omitempty"`
|
Lock *string `json:"lock,omitempty"`
|
||||||
MemoryAllocation *int `json:"maxmem,omitempty"`
|
MemoryAllocation *int `json:"maxmem,omitempty"`
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
RootDiskSize *interface{} `json:"maxdisk,omitempty"`
|
RootDiskSize *interface{} `json:"maxdisk,omitempty"`
|
||||||
Status string `json:"status,omitempty"`
|
Status string `json:"status,omitempty"`
|
||||||
SwapAllocation *int `json:"maxswap,omitempty"`
|
SwapAllocation *int `json:"maxswap,omitempty"`
|
||||||
Tags *string `json:"tags,omitempty"`
|
Tags *string `json:"tags,omitempty"`
|
||||||
Uptime *int `json:"uptime,omitempty"`
|
Uptime *int `json:"uptime,omitempty"`
|
||||||
VMID *int `json:"vmid,omitempty"`
|
VMID *types.CustomInt `json:"vmid,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StartResponseBody contains the body from a container start response.
|
// StartResponseBody contains the body from a container start response.
|
||||||
|
Loading…
Reference in New Issue
Block a user