[DRE-commits] [vagrant-libvirt] 69/77: Handle forward slash in box name

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:56:40 UTC 2016


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

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

commit 59061dbd431bbc05d4fbd103956ccca4d6b31634
Author: Brian Pitts <brian at polibyte.com>
Date:   Sun Jun 8 18:55:18 2014 -0500

    Handle forward slash in box name
---
 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 6f421bb..4983111 100644
--- a/lib/vagrant-libvirt/action/handle_box_image.rb
+++ b/lib/vagrant-libvirt/action/handle_box_image.rb
@@ -31,7 +31,7 @@ module VagrantPlugins
           # Get config options
           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
+          env[:box_volume_name] = env[:machine].box.name.to_s.dup.gsub("/", "-VAGRANTSLASH-")
           env[:box_volume_name] << '_vagrant_box_image.img'
 
           # 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