packer: replace \r with literal on Ui for MR

This commit is contained in:
Mitchell Hashimoto 2013-08-11 23:19:13 -07:00
parent 04c8592077
commit eed6ece45b
1 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ func (u *MachineReadableUi) Machine(category string, args ...string) {
// Prepare the args
for i, v := range args {
args[i] = strings.Replace(v, ",", "%!(PACKER_COMMA)", -1)
args[i] = strings.Replace(args[i], "\r", "\\r", -1)
args[i] = strings.Replace(args[i], "\n", "\\n", -1)
}
argsString := strings.Join(args, ",")