[DRE-commits] [vagrant-libvirt] 162/163: more strict patern for full path

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:57:19 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 807005afc37df70887b975c1c1a3f52ef69d3398
Author: dima <pronix.service at gmail.com>
Date:   Wed Apr 15 21:48:29 2015 +0200

    more strict patern for full path
---
 lib/vagrant-libvirt/config.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vagrant-libvirt/config.rb b/lib/vagrant-libvirt/config.rb
index dbf0497..7412824 100644
--- a/lib/vagrant-libvirt/config.rb
+++ b/lib/vagrant-libvirt/config.rb
@@ -247,7 +247,7 @@ module VagrantPlugins
           # set ssh key for access to libvirt host
           uri << "\&keyfile="
           # if no slash, prepend $HOME/.ssh/
-          uri << "#{`echo ${HOME}`.chomp}/.ssh/" if @id_ssh_key_file !~ /\//
+          uri << "#{`echo ${HOME}`.chomp}/.ssh/" if @id_ssh_key_file !~ /\A\//
           uri << @id_ssh_key_file
         end
         # set path to libvirt socket

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