Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
656de901
Commit
656de901
authored
Aug 12, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer: replace stdout/stderr after StartWithUi
This just kind of shields the error with StartWithUi if we retry
parent
7eb115f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
packer/communicator.go
packer/communicator.go
+8
-0
No files found.
packer/communicator.go
View file @
656de901
...
...
@@ -72,6 +72,14 @@ func (r *RemoteCmd) StartWithUi(c Communicator, ui Ui) error {
defer
stdout_w
.
Close
()
defer
stderr_w
.
Close
()
// Retain the original stdout/stderr that we can replace back in.
originalStdout
:=
r
.
Stdout
originalStderr
:=
r
.
Stderr
defer
func
()
{
r
.
Stdout
=
originalStdout
r
.
Stderr
=
originalStderr
}()
// Set the writers for the output so that we get it streamed to us
if
r
.
Stdout
==
nil
{
r
.
Stdout
=
stdout_w
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment