Skip to content

Commit b98f652

Browse files
committed
Fix missing option in call to da.azcli.VirtualMachinesClient().CreateOrUpdate
1 parent 31f96d5 commit b98f652

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/azure/chroot/diskattacher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (da diskAttacher) setDisks(ctx context.Context, disks []hashiVMSDK.DataDisk
194194
defer cancel()
195195
vmID := hashiVMSDK.NewVirtualMachineID(da.azcli.SubscriptionID(), da.vm.ResourceGroupName, da.vm.Name)
196196
// update the VM resource, attach disk
197-
_, err = da.azcli.VirtualMachinesClient().CreateOrUpdate(pollingContext, vmID, vmResource)
197+
_, err = da.azcli.VirtualMachinesClient().CreateOrUpdate(pollingContext, vmID, vmResource, hashiVMSDK.DefaultCreateOrUpdateOperationOptions())
198198

199199
return err
200200
}

0 commit comments

Comments
 (0)