Skip to content

Commit

Permalink
Updating the Data Disk Attachment API call to not return the addition…
Browse files Browse the repository at this point in the history
…al properties (#1855)
  • Loading branch information
tombuildsstuff authored Aug 31, 2018
1 parent 1a72110 commit 7e87a0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func resourceArmVirtualMachineDataDiskAttachmentCreateUpdate(d *schema.ResourceD
azureRMLockByName(virtualMachineName, virtualMachineResourceName)
defer azureRMUnlockByName(virtualMachineName, virtualMachineResourceName)

virtualMachine, err := client.Get(ctx, resourceGroup, virtualMachineName, compute.InstanceView)
virtualMachine, err := client.Get(ctx, resourceGroup, virtualMachineName, "")
if err != nil {
if utils.ResponseWasNotFound(virtualMachine.Response) {
return fmt.Errorf("Virtual Machine %q (Resource Group %q) was not found", virtualMachineName, resourceGroup)
Expand Down

0 comments on commit 7e87a0e

Please sign in to comment.