From 4de7716ffb3b76e2d520a762b30098e6cdbcbfb9 Mon Sep 17 00:00:00 2001 From: Renato Aguiar Date: Tue, 5 Mar 2019 09:19:23 -0800 Subject: [PATCH] Fix NFS capability detection on Void Linux --- plugins/hosts/void/cap/nfs.rb | 2 +- test/unit/plugins/hosts/void/cap/nfs_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hosts/void/cap/nfs.rb b/plugins/hosts/void/cap/nfs.rb index 2e4ce9fb3..50fa1c810 100644 --- a/plugins/hosts/void/cap/nfs.rb +++ b/plugins/hosts/void/cap/nfs.rb @@ -15,7 +15,7 @@ module VagrantPlugins end def self.nfs_installed(env) - result = Vagrant::Util::Subprocess.execute("/usr/bin/xbps-query nfs-utils") + result = Vagrant::Util::Subprocess.execute("/usr/bin/xbps-query", "nfs-utils") result.exit_code == 0 end end diff --git a/test/unit/plugins/hosts/void/cap/nfs_test.rb b/test/unit/plugins/hosts/void/cap/nfs_test.rb index 72aac8713..d1f6f00bc 100644 --- a/test/unit/plugins/hosts/void/cap/nfs_test.rb +++ b/test/unit/plugins/hosts/void/cap/nfs_test.rb @@ -39,7 +39,7 @@ describe VagrantPlugins::HostVoid::Cap::NFS do let(:result) { Vagrant::Util::Subprocess::Result.new(exit_code, "", "") } before { allow(Vagrant::Util::Subprocess).to receive(:execute). - with(/xbps-query nfs-utils/).and_return(result) } + with("/usr/bin/xbps-query", "nfs-utils").and_return(result) } it "should provide nfs_installed capability" do expect(caps.get(:nfs_installed)).to eq(described_class)