lib/vagrant-vbguest/detector.rb in vagrant-vbguest-0.3.0 vs lib/vagrant-vbguest/detector.rb in vagrant-vbguest-0.3.1
- old
+ new
@@ -18,10 +18,10 @@
raise VagrantVbguest::IsoPathAutodetectionError if !path || path.empty?
path
end
def media_manager_iso
- (m = @vm.driver.execute('list', 'dvds').match(/^.+:\s+(?<path>.*VBoxGuestAdditions.iso)$/i)) && m[:path]
+ (m = @vm.driver.execute('list', 'dvds').match(/^.+:\s+(.*VBoxGuestAdditions.iso)$/i)) && m[1]
end
def guess_iso
path_platform = if Vagrant::Util::Platform.linux?
"/usr/share/virtualbox/VBoxGuestAdditions.iso"
\ No newline at end of file