[DRE-commits] [vagrant-libvirt] 135/163: rescue if version of box not defined

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:57:16 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 b4a5f2c039d5e29438ce47b3e070395e77187cc4
Author: Dmitry Vasilets <pronix.service at gmail.com>
Date:   Mon Apr 6 09:15:17 2015 +0200

    rescue if version of box not defined
---
 lib/vagrant-libvirt/action/handle_box_image.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vagrant-libvirt/action/handle_box_image.rb b/lib/vagrant-libvirt/action/handle_box_image.rb
index 05606e5..a3d7297 100644
--- a/lib/vagrant-libvirt/action/handle_box_image.rb
+++ b/lib/vagrant-libvirt/action/handle_box_image.rb
@@ -35,7 +35,7 @@ module VagrantPlugins
           config   = env[:machine].provider_config
           box_image_file = env[:machine].box.directory.join('box.img').to_s
           env[:box_volume_name] = env[:machine].box.name.to_s.dup.gsub("/", "-VAGRANTSLASH-")
-          env[:box_volume_name] << "_vagrant_box_image_#{env[:machine].box.version.to_s}.img"
+          env[:box_volume_name] << "_vagrant_box_image_#{env[:machine].box.version.to_s rescue ''}.img"
 
           @@lock.synchronize do
             # Don't continue if image already exists in storage pool.

-- 
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