diff --git a/plugins/provisioners/puppet/provisioner/puppet.rb b/plugins/provisioners/puppet/provisioner/puppet.rb index c06ea9be9..164241608 100644 --- a/plugins/provisioners/puppet/provisioner/puppet.rb +++ b/plugins/provisioners/puppet/provisioner/puppet.rb @@ -159,7 +159,8 @@ module VagrantPlugins :manifest => @manifest_file) env[:machine].communicate.sudo(command) do |type, data| - env[:ui].info(data.chomp, :prefix => false) + data.chomp! + env[:ui].info(data, :prefix => false) if !data.empty? end end diff --git a/plugins/provisioners/puppet/provisioner/puppet_server.rb b/plugins/provisioners/puppet/provisioner/puppet_server.rb index e88668a6c..3c345b885 100644 --- a/plugins/provisioners/puppet/provisioner/puppet_server.rb +++ b/plugins/provisioners/puppet/provisioner/puppet_server.rb @@ -71,7 +71,8 @@ module VagrantPlugins env[:ui].info I18n.t("vagrant.provisioners.puppet_server.running_puppetd") env[:vm].channel.sudo(command) do |type, data| - env[:ui].info(data.chomp, :prefix => false) + data.chomp! + env[:ui].info(data, :prefix => false) if !data.empty? end end end