[DRE-commits] [vagrant-libvirt] 100/163: honor the vagrant box version

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:57:11 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 d0ea35fc881978ada9d513f5b6ce4a1a4aff983b
Author: Dennis Klein <d.klein at gsi.de>
Date:   Fri Jan 16 20:15:00 2015 +0100

    honor the vagrant box version
    
    As discussed in #85 vagrant-libvirt's image management could
    be better. This is only addressing a small aspect of the topic,
    but due to its simplicity it could improve vagrant-libvirt in the
    meantime until #85 is fully resolved.
---
 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 7c972de..23e5b6f 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.img'
+          env[:box_volume_name] << "_vagrant_box_image_#{env[:machine].box.version.to_s}.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