Remove uuid from params
No need to pass in machine uuid as it is a class variable already for the driver
This commit is contained in:
parent
259cb5fcca
commit
2a3f9dad29
@ -67,7 +67,7 @@ module VagrantPlugins
|
||||
# @param [Vagrant::Machine] machine
|
||||
# @param [Kernel_V2::VagrantConfigDisk] disk_config
|
||||
def self.create_disk(machine, disk_config)
|
||||
guest_info = machine.provider.driver.show_vm_info(machine.id)
|
||||
guest_info = machine.provider.driver.show_vm_info
|
||||
disk_provider_config = disk_config.provider_config[:virtualbox]
|
||||
|
||||
guest_folder = File.dirname(guest_info["CfgFile"])
|
||||
|
||||
@ -372,9 +372,9 @@ module VagrantPlugins
|
||||
#
|
||||
# @param [String] uuid
|
||||
# @return [Hash] info
|
||||
def show_vm_info(uuid)
|
||||
def show_vm_info
|
||||
info = {}
|
||||
execute('showvminfo', uuid, '--machinereadable', retryable: true).split("\n").each do |line|
|
||||
execute('showvminfo', @uuid, '--machinereadable', retryable: true).split("\n").each do |line|
|
||||
parts = line.partition('=')
|
||||
key = parts.first.gsub('"', '')
|
||||
value = parts.last.gsub('"', '')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user