Simplify builtin disk action
This commit is contained in:
parent
e598007237
commit
83fea21ff1
|
@ -11,10 +11,7 @@ module Vagrant
|
||||||
machine = env[:machine]
|
machine = env[:machine]
|
||||||
defined_disks = get_disks(machine, env)
|
defined_disks = get_disks(machine, env)
|
||||||
|
|
||||||
# Check that provider plugin is installed for disk
|
# Call into providers machine implementation for disk management
|
||||||
# If not, log warning or error to user that disks won't be managed
|
|
||||||
|
|
||||||
# TODO: configure and attach disks for the machines providers implementation
|
|
||||||
|
|
||||||
# Continue On
|
# Continue On
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
|
@ -24,9 +21,7 @@ module Vagrant
|
||||||
return @_disks if @_disks
|
return @_disks if @_disks
|
||||||
|
|
||||||
@_disks = []
|
@_disks = []
|
||||||
@_disks = machine.config.vm.disks.map do |disk|
|
@_disks = machine.config.vm.disks
|
||||||
# initialize the disk provider??
|
|
||||||
end
|
|
||||||
|
|
||||||
@_disks
|
@_disks
|
||||||
end
|
end
|
||||||
|
|
|
@ -39,7 +39,6 @@ module VagrantPlugins
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :file
|
attr_accessor :file
|
||||||
|
|
||||||
|
|
||||||
# Determines if this disk is the _main_ disk, or an attachment.
|
# Determines if this disk is the _main_ disk, or an attachment.
|
||||||
# Defaults to true.
|
# Defaults to true.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue