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
29e6194e
Commit
29e6194e
authored
Jul 15, 2015
by
Chris Bednarski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a warning log so we can diagnose failure cases
parent
8e3559c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
communicator/winrm/communicator.go
communicator/winrm/communicator.go
+4
-0
No files found.
communicator/winrm/communicator.go
View file @
29e6194e
...
@@ -87,10 +87,14 @@ func runCommand(shell *winrm.Shell, cmd *winrm.Command, rc *packer.RemoteCmd) {
...
@@ -87,10 +87,14 @@ func runCommand(shell *winrm.Shell, cmd *winrm.Command, rc *packer.RemoteCmd) {
if
rc
.
Stdout
!=
nil
&&
cmd
.
Stdout
!=
nil
{
if
rc
.
Stdout
!=
nil
&&
cmd
.
Stdout
!=
nil
{
go
io
.
Copy
(
rc
.
Stdout
,
cmd
.
Stdout
)
go
io
.
Copy
(
rc
.
Stdout
,
cmd
.
Stdout
)
}
else
{
log
.
Printf
(
"[WARN] Failed to read stdout for command '%s'"
,
rc
.
Command
)
}
}
if
rc
.
Stderr
!=
nil
&&
cmd
.
Stderr
!=
nil
{
if
rc
.
Stderr
!=
nil
&&
cmd
.
Stderr
!=
nil
{
go
io
.
Copy
(
rc
.
Stderr
,
cmd
.
Stderr
)
go
io
.
Copy
(
rc
.
Stderr
,
cmd
.
Stderr
)
}
else
{
log
.
Printf
(
"[WARN] Failed to read stderr for command '%s'"
,
rc
.
Command
)
}
}
cmd
.
Wait
()
cmd
.
Wait
()
...
...
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