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:
parent
423e212f58
commit
c316d18e35
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user