Merge pull request #718 from mephaust/master
Restore stand-alone puppet colors
This commit is contained in:
commit
63bd380778
|
@ -146,12 +146,7 @@ module Vagrant
|
||||||
:manifest => @manifest_file)
|
:manifest => @manifest_file)
|
||||||
|
|
||||||
env[:vm].channel.sudo(command) do |type, data|
|
env[:vm].channel.sudo(command) do |type, data|
|
||||||
# Output the data with the proper color based on the stream.
|
env[:ui].info(data.chomp, :prefix => false)
|
||||||
color = type == :stdout ? :green : :red
|
|
||||||
|
|
||||||
# Note: Be sure to chomp the data to avoid the newlines that the
|
|
||||||
# Chef outputs.
|
|
||||||
env[:ui].info(data.chomp, :color => color, :prefix => false)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue