Skip to content

Commit

Permalink
switched field requirement for maximum_memory and memory (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
engelmi authored Jun 7, 2022
1 parent 41b7e90 commit e51337f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ovirt/resource_ovirt_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ var vmSchema = map[string]*schema.Schema{
Optional: true,
Description: "Memory to assign to the VM in bytes.",
ValidateDiagFunc: validatePositiveInt,
RequiredWith: []string{"maximum_memory"},
},
"maximum_memory": {
Type: schema.TypeInt,
Optional: true,
ForceNew: true,
Description: "Maximum memory to assign to the VM in the memory policy in bytes.",
ValidateDiagFunc: validatePositiveInt,
RequiredWith: []string{"memory"},
},
"memory_ballooning": {
Type: schema.TypeBool,
Expand Down

0 comments on commit e51337f

Please sign in to comment.