Merge pull request #2861 from morrizon/machine_readable_issue

commands/box-list: dup string if frozen when formatting output for machine.
This commit is contained in:
Mitchell Hashimoto 2014-01-19 09:04:41 -08:00
commit ab9a79e378
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ module Vagrant
# Prepare the data by replacing characters that aren't outputted
data.each_index do |i|
data[i] = data[i].to_s
data[i] = data[i].dup if data[i].frozen?
data[i].gsub!(",", "%!(VAGRANT_COMMA)")
data[i].gsub!("\n", "\\n")
data[i].gsub!("\r", "\\r")