From 1f805f6deb2bce3b024a8082ed0b56fd81f33ebb Mon Sep 17 00:00:00 2001 From: Frederik Leonhardt Date: Wed, 8 Feb 2017 09:40:32 +1300 Subject: [PATCH] Update pipework regexp for sudo wrapper On Vagrant 1.9+ plugin gems are installed into a different folder, their path containing the ruby version. This updates the regular expression whitelisting the pipework script to reflect this change. --- lib/vagrant-lxc/command/sudoers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/command/sudoers.rb b/lib/vagrant-lxc/command/sudoers.rb index 42b538a..0016c13 100644 --- a/lib/vagrant-lxc/command/sudoers.rb +++ b/lib/vagrant-lxc/command/sudoers.rb @@ -48,7 +48,7 @@ module Vagrant 'sudoers.rb', :template_root => Vagrant::LXC.source_root.join('templates').to_s, :cmd_paths => build_cmd_paths_hash, - :pipework_regex => "#{ENV['HOME']}/\.vagrant\.d/gems/gems/vagrant-lxc.+/scripts/pipework" + :pipework_regex => "#{ENV['HOME']}/\.vagrant\.d/gems/(?:\\d+?\\.\\d+?\\.\\d+?/)?gems/vagrant-lxc.+/scripts/pipework" ) file.puts template.render end