Skip to content

Commit

Permalink
fix(lxc): unmarshal string/int vmid as int
Browse files Browse the repository at this point in the history
  • Loading branch information
zamrih committed Oct 15, 2023
1 parent aeb5e88 commit 63b7634
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions proxmox/nodes/containers/containers_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,16 @@ type GetStatusResponseBody struct {

// GetStatusResponseData contains the data from a container get status response.
type GetStatusResponseData struct {
CPUCount *float64 `json:"cpus,omitempty"`
Lock *string `json:"lock,omitempty"`
MemoryAllocation *int `json:"maxmem,omitempty"`
Name *string `json:"name,omitempty"`
RootDiskSize *interface{} `json:"maxdisk,omitempty"`
Status string `json:"status,omitempty"`
SwapAllocation *int `json:"maxswap,omitempty"`
Tags *string `json:"tags,omitempty"`
Uptime *int `json:"uptime,omitempty"`
VMID *int `json:"vmid,omitempty"`
CPUCount *float64 `json:"cpus,omitempty"`
Lock *string `json:"lock,omitempty"`
MemoryAllocation *int `json:"maxmem,omitempty"`
Name *string `json:"name,omitempty"`
RootDiskSize *interface{} `json:"maxdisk,omitempty"`
Status string `json:"status,omitempty"`
SwapAllocation *int `json:"maxswap,omitempty"`
Tags *string `json:"tags,omitempty"`
Uptime *int `json:"uptime,omitempty"`
VMID *types.CustomInt `json:"vmid,omitempty"`
}

// StartResponseBody contains the body from a container start response.
Expand Down

0 comments on commit 63b7634

Please sign in to comment.