Commit 847cb02e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: fuzzy search broken pipe too [GH-1314]

parent c7dffaf1
...@@ -22,7 +22,8 @@ BUG FIXES: ...@@ -22,7 +22,8 @@ BUG FIXES:
* core: nicer error message if an encrypted private key is used for * core: nicer error message if an encrypted private key is used for
SSH. [GH-1445] SSH. [GH-1445]
* core: Fix crash that could happen with a well timed double Ctrl-C. [GH-1328] * core: Fix crash that could happen with a well timed double Ctrl-C.
[GH-1328] [GH-1314]
* builder/amazon-chroot: Can properly build HVM images now. [GH-1360] * builder/amazon-chroot: Can properly build HVM images now. [GH-1360]
* builder/amazon-chroot: Fix crash in root device check. [GH-1360] * builder/amazon-chroot: Fix crash in root device check. [GH-1360]
* builder/amazon-instance: Fix deprecation warning for `ec2-bundle-vol` * builder/amazon-instance: Fix deprecation warning for `ec2-bundle-vol`
......
...@@ -289,7 +289,7 @@ func (u *MachineReadableUi) Machine(category string, args ...string) { ...@@ -289,7 +289,7 @@ func (u *MachineReadableUi) Machine(category string, args ...string) {
_, err := fmt.Fprintf(u.Writer, "%d,%s,%s,%s\n", now.Unix(), target, category, argsString) _, err := fmt.Fprintf(u.Writer, "%d,%s,%s,%s\n", now.Unix(), target, category, argsString)
if err != nil { if err != nil {
if err == syscall.EPIPE { if err == syscall.EPIPE || strings.Contains(err.Error(), "broken pipe") {
// Ignore epipe errors because that just means that the file // Ignore epipe errors because that just means that the file
// is probably closed or going to /dev/null or something. // is probably closed or going to /dev/null or something.
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment