Skip to content

Commit

Permalink
compute: adding the missing arg to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Jan 5, 2021
1 parent cfc0bfb commit 577069c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ func testDeleteAzureRMVirtualMachine(resourceName string) resource.TestCheckFunc
return fmt.Errorf("Bad: no resource group found in state for virtual machine: %s", vmName)
}

future, err := client.Delete(ctx, resourceGroup, vmName)
// this is a preview feature we don't want to use right now
var forceDelete *bool = nil
future, err := client.Delete(ctx, resourceGroup, vmName, forceDelete)
if err != nil {
return fmt.Errorf("Bad: Delete on vmClient: %+v", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3142,7 +3142,9 @@ func testCheckAzureRMVirtualMachineDisappears(resourceName string) resource.Test
return fmt.Errorf("Bad: no resource group found in state for virtual machine: %s", vmName)
}

future, err := client.Delete(ctx, resourceGroup, vmName)
// this is a preview feature we don't want to use right now
var forceDelete *bool = nil
future, err := client.Delete(ctx, resourceGroup, vmName, forceDelete)
if err != nil {
return fmt.Errorf("Bad: Delete on vmClient: %+v", err)
}
Expand Down

0 comments on commit 577069c

Please sign in to comment.