Check for nil config_path.

This commit is contained in:
Ben Hines 2015-07-14 23:26:55 -07:00
parent 8c1ff5ee26
commit 8c2ddac2cd
1 changed files with 4 additions and 1 deletions

View File

@ -216,7 +216,10 @@ module VagrantPlugins
facter = "#{facts.join(" ")} " facter = "#{facts.join(" ")} "
end end
puppet_bin = File.join(@config.binary_path, "puppet") puppet_bin = "puppet"
if(@config.binary_path)
puppet_bin = File.join(@config.binary_path, puppet_bin)
end
command = "#{facter} #{puppet_bin} apply #{options}" command = "#{facter} #{puppet_bin} apply #{options}"
if config.working_directory if config.working_directory
if windows? if windows?