Apply suggestions from code review

Co-authored-by: Brian Cain <bcain@hashicorp.com>
Co-authored-by: Sophia Castellarin <sophia@hashicorp.com>
This commit is contained in:
Jeff Bonhag 2020-06-26 15:59:06 -04:00 committed by Jeff Bonhag
parent 423e212f58
commit c316d18e35
No known key found for this signature in database
GPG Key ID: 32966F3FB5AC1129
3 changed files with 5 additions and 5 deletions

View File

@ -107,7 +107,7 @@ module VagrantPlugins
current_disk = all_disks.select { |d| d["UUID"] == primary_uuid }.first
else
current_disk = all_disks.select { |d| d["Disk Name"] == disk.name }.first
current_disk = all_disks.detect { |d| d["Disk Name"] == disk.name }
end
current_disk

View File

@ -16,12 +16,12 @@ Vagrant Disks has several options that allow users to define and attach disks to
supported disk extensions, please check the specific provider being used.
Not used for type `:dvd.`
- `file` (string) - Ffor type `:dvd`, this is a required argument that should
point to an .iso file on the host machine. For type `:disk`, this is an
- `file` (string) - For type `:dvd`, this is a required argument that should
point to an `.iso` file on the host machine. For type `:disk`, this is an
optional argument that can point to the location of a disk file that already
exists.
- `name` (string) - Required option to give the disk a name. This name will be
- `name` (string) - Required option to give the disk a name. This name will
also be used as the filename when creating a virtual hard disk.
- `primary` (boolean) - Optional argument that configures a given disk to be

View File

@ -92,7 +92,7 @@ result in a Vagrant error.
### Attaching optical drives
Vagrant can attach .iso files as optical drives using the VirtualBox provider.
Vagrant can attach `.iso` files as optical drives using the VirtualBox provider.
An example of attaching an optical drive to a guest can be found below:
```ruby