Skip to content

Commit

Permalink
Merge pull request Telmate#987 from Tinyblargon/fix#984
Browse files Browse the repository at this point in the history
fix: `machine` diff to `null`
  • Loading branch information
Tinyblargon authored Apr 24, 2024
2 parents 38f73cb + 4ebb480 commit ffc8982
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ func resourceVmQemu() *schema.Resource {
Optional: true,
Description: "Specifies the Qemu machine type.",
ValidateDiagFunc: MachineTypeValidator(),
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
if old == new || (old != "" && new == "") {
return true
}
return false
},
},
"memory": {
Type: schema.TypeInt,
Expand Down

0 comments on commit ffc8982

Please sign in to comment.