Skip to content

Commit

Permalink
Explaining why we're deliberately ignoring an error
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Jun 19, 2018
1 parent 6cc0840 commit 32953a0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func resourceArmVirtualMachineDataDiskAttachmentCreateUpdate(d *schema.ResourceD

// if there's too many disks we get a 409 back with:
// `The maximum number of data disks allowed to be attached to a VM of this size is 1.`
// which we're intentionally not wrapping, since the errors good.
future, err := client.CreateOrUpdate(ctx, resourceGroup, virtualMachineName, virtualMachine)
if err != nil {
return fmt.Errorf("Error updating Virtual Machine %q (Resource Group %q) with Disk %q: %+v", virtualMachineName, resourceGroup, name, err)
Expand Down

0 comments on commit 32953a0

Please sign in to comment.