diff --git a/plugins/provisioners/puppet/provisioner/puppet_server.rb b/plugins/provisioners/puppet/provisioner/puppet_server.rb index e575b6fc8..8cacbbb57 100644 --- a/plugins/provisioners/puppet/provisioner/puppet_server.rb +++ b/plugins/provisioners/puppet/provisioner/puppet_server.rb @@ -67,8 +67,6 @@ module VagrantPlugins options << "--color=false" end - options = options.join(" ") - # Build up the custom facts if we have any facter = "" if !config.facter.empty? @@ -80,6 +78,7 @@ module VagrantPlugins facter = "#{facts.join(" ")} " end + options = options.join(" ") command = "#{facter}puppet agent #{options} --server " + "#{config.puppet_server} --detailed-exitcodes || [ $? -eq 2 ]"