Skip to content

Commit

Permalink
Reverse unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aris van Ommeren committed Oct 4, 2021
1 parent efc1602 commit 010a031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/services/compute/linux_virtual_machine_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func resourceLinuxVirtualMachine() *pluginsdk.Resource {
},

"eviction_policy": {
// only applicable when `priority` is set to `VirtualMachinePriorityTypesSpot`
// only applicable when `priority` is set to `Spot`
Type: pluginsdk.TypeString,
Optional: true,
ForceNew: true,
Expand Down Expand Up @@ -654,7 +654,7 @@ func resourceLinuxVirtualMachineRead(d *pluginsdk.ResourceData, meta interface{}
}
}
// Resources created with azurerm_virtual_machine have priority set to ""
// We need to treat "" as equal to "VirtualMachinePriorityTypesRegular" to allow migration azurerm_virtual_machine -> azurerm_linux_virtual_machine
// We need to treat "" as equal to "Regular" to allow migration azurerm_virtual_machine -> azurerm_linux_virtual_machine
priority := string(compute.VirtualMachinePriorityTypesRegular)
if props.Priority != "" {
priority = string(props.Priority)
Expand Down

0 comments on commit 010a031

Please sign in to comment.