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
cf731bf6
Commit
cf731bf6
authored
Sep 05, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/vmware: no error if stopping already stopped [GH-1300]
parent
b9f82ef1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
CHANGELOG.md
CHANGELOG.md
+2
-0
builder/vmware/common/driver_fusion5.go
builder/vmware/common/driver_fusion5.go
+6
-0
No files found.
CHANGELOG.md
View file @
cf731bf6
...
...
@@ -76,6 +76,8 @@ BUG FIXES:
with a zero exit code. [GH-1119]
*
builder/virtualbox/iso: Append timestamp to default name for parallel
builds. [GH-1365]
*
builder/vmware/all: No more error when Packer stops an already-stopped
VM. [GH-1300]
*
builder/vmware/all:
`ssh_host`
accepts templates. [GH-1396]
*
builder/vmware/all: Don't remount floppy in VMX post step. [GH-1239]
*
builder/vmware/vmx: Do not re-add floppy disk files to VMX [GH-1361]
...
...
builder/vmware/common/driver_fusion5.go
View file @
cf731bf6
...
...
@@ -90,6 +90,12 @@ func (d *Fusion5Driver) Start(vmxPath string, headless bool) error {
func
(
d
*
Fusion5Driver
)
Stop
(
vmxPath
string
)
error
{
cmd
:=
exec
.
Command
(
d
.
vmrunPath
(),
"-T"
,
"fusion"
,
"stop"
,
vmxPath
,
"hard"
)
if
_
,
_
,
err
:=
runAndLog
(
cmd
);
err
!=
nil
{
// Check if the VM is running. If its not, it was already stopped
running
,
rerr
:=
d
.
IsRunning
(
vmxPath
)
if
rerr
==
nil
&&
!
running
{
return
nil
}
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