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
a9bd78a0
Commit
a9bd78a0
authored
Sep 05, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
communicator/ssh: detect if SCP exited with failure [GH-386]
parent
9a630973
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
CHANGELOG.md
CHANGELOG.md
+1
-0
communicator/ssh/communicator.go
communicator/ssh/communicator.go
+4
-2
No files found.
CHANGELOG.md
View file @
a9bd78a0
...
...
@@ -23,6 +23,7 @@ IMPROVEMENTS:
BUG FIXES:
*
core: Detect if SCP is not enabled on the other side. [GH-386]
*
builder/amazon/all: When copying AMI to multiple regions, copy
the metadata (tags and attributes) as well. [GH-388]
*
builder/amazon/all: Fix panic case where eventually consistent
...
...
communicator/ssh/communicator.go
View file @
a9bd78a0
...
...
@@ -290,9 +290,11 @@ func (c *comm) scpSession(scpCommand string, f func(io.Writer, *bufio.Reader) er
return
err
}
// Call our callback that executes in the context of SCP
// Call our callback that executes in the context of SCP. We ignore
// EOF errors if they occur because it usually means that SCP prematurely
// ended on the other side.
log
.
Println
(
"Started SCP session, beginning transfers..."
)
if
err
:=
f
(
stdinW
,
stdoutR
);
err
!=
nil
{
if
err
:=
f
(
stdinW
,
stdoutR
);
err
!=
nil
&&
err
!=
io
.
EOF
{
return
err
}
...
...
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