Fixed: dup string if frozen when formatting output for machine.

This commit is contained in:
Carlos López 2014-01-19 14:34:32 +00:00
parent 64649f8f1d
commit 8d1cc513ec
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")