[DRE-commits] [vagrant-libvirt] 18/77: Only rsync if the type is set to rsync

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:56:33 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 cf2616823c2446e2a31ae6c15665684a454cb49b
Author: Ewoud Kohl van Wijngaarden <e.kohlvanwijngaarden at oxilion.nl>
Date:   Tue Mar 11 18:40:38 2014 +0100

    Only rsync if the type is set to rsync
    
    Since the default of vagrant-libvirt is now NFS even in case the type is
    empty, rsync should only be called if the type is explicitly set to
    rsync.
---
 lib/vagrant-libvirt/action/sync_folders.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vagrant-libvirt/action/sync_folders.rb b/lib/vagrant-libvirt/action/sync_folders.rb
index 862622b..c2815aa 100644
--- a/lib/vagrant-libvirt/action/sync_folders.rb
+++ b/lib/vagrant-libvirt/action/sync_folders.rb
@@ -18,7 +18,7 @@ module VagrantPlugins
           ssh_info = env[:machine].ssh_info
 
           env[:machine].config.vm.synced_folders.each do |id, data|
-            next if data[:type] == :nfs
+            next unless data[:type] == :rsync
             proxycommand = "-o ProxyCommand='#{ssh_info[:proxy_command]}'" if ssh_info[:proxy_command]
             hostpath  = File.expand_path(data[:hostpath], env[:root_path])
             guestpath = data[:guestpath]

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