Skip to content

Commit

Permalink
Merge pull request #301 from Telmate/issue-300-fix
Browse files Browse the repository at this point in the history
[#300] fix machine not set from api response
  • Loading branch information
mleone87 authored Jan 20, 2024
2 parents cd419d1 + 13dcd7d commit e1cc849
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxmox/config_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ func (ConfigQemu) mapToStruct(vmr *VmRef, params map[string]interface{}) (*Confi
if _, isSet := params["hookscript"]; isSet {
config.Hookscript = params["hookscript"].(string)
}
if _, isSet := params["machine"]; isSet {
config.Machine = params["machine"].(string)
}
if _, isSet := params["memory"]; isSet {
switch params["memory"].(type) {
case float64:
Expand Down

0 comments on commit e1cc849

Please sign in to comment.