[DRE-commits] [vagrant-libvirt] 127/163: check image file close #320

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:57:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag 0.0.26
in repository vagrant-libvirt.

commit e45e31fc128ebbd66ef08c1741f0df81f8c8c68b
Author: dima <pronix.service at gmail.com>
Date:   Wed Apr 1 09:42:43 2015 +0200

    check image file close #320
---
 lib/vagrant-libvirt/action/handle_box_image.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/vagrant-libvirt/action/handle_box_image.rb b/lib/vagrant-libvirt/action/handle_box_image.rb
index 7c972de..5c71d65 100644
--- a/lib/vagrant-libvirt/action/handle_box_image.rb
+++ b/lib/vagrant-libvirt/action/handle_box_image.rb
@@ -47,6 +47,7 @@ module VagrantPlugins
             env[:ui].info(I18n.t('vagrant_libvirt.uploading_volume'))
 
             # Create new volume in storage pool
+            raise Errors::BoxNotFound if !File.exists(box_image_file)
             box_image_size = File.size(box_image_file) # B
             message = "Creating volume #{env[:box_volume_name]}"
             message << " in storage pool #{config.storage_pool_name}."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git



More information about the Pkg-ruby-extras-commits mailing list