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:
commit
ab9a79e378
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue