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
f54f09d7
Commit
f54f09d7
authored
Sep 05, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/virtualbox: detect vboxmanage errors with zero code [GH-1119]
parent
37f5f007
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
CHANGELOG.md
CHANGELOG.md
+2
-0
builder/virtualbox/common/driver_4_2.go
builder/virtualbox/common/driver_4_2.go
+7
-0
No files found.
CHANGELOG.md
View file @
f54f09d7
...
...
@@ -69,6 +69,8 @@ BUG FIXES:
*
builder/virtualbox/all: Seed RNG to avoid same ports. [GH-1386]
*
builder/virtualbox/all: Better error if guest additions URL couldn't be
detected. [GH-1439]
*
builder/virtualbox/all: Detect errors even when
`VBoxManage`
exits
with a zero exit code. [GH-1119]
*
builder/virtualbox/iso: Append timestamp to default name for parallel
builds. [GH-1365]
*
builder/vmware/all:
`ssh_host`
accepts templates. [GH-1396]
...
...
builder/virtualbox/common/driver_4_2.go
View file @
f54f09d7
...
...
@@ -157,6 +157,13 @@ func (d *VBox42Driver) VBoxManage(args ...string) error {
err
=
fmt
.
Errorf
(
"VBoxManage error: %s"
,
stderrString
)
}
if
err
==
nil
{
m
,
_
:=
regexp
.
MatchString
(
"VBoxManage([.a-z]+?): error:"
,
stderrString
)
if
m
{
err
=
fmt
.
Errorf
(
"VBoxManage error: %s"
,
stderrString
)
}
}
log
.
Printf
(
"stdout: %s"
,
stdoutString
)
log
.
Printf
(
"stderr: %s"
,
stderrString
)
...
...
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