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
c74b3758
Commit
c74b3758
authored
Jan 01, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/vmware-iso: ESX5Driver impl OutputDir [GH-773]
parent
07cc1cd9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
builder/vmware/iso/driver_esx5.go
builder/vmware/iso/driver_esx5.go
+8
-0
builder/vmware/iso/driver_esx5_test.go
builder/vmware/iso/driver_esx5_test.go
+4
-0
No files found.
CHANGELOG.md
View file @
c74b3758
...
...
@@ -4,6 +4,7 @@ BUG FIXES:
*
core: If a stream ID loops around, don't let it use stream ID 0 [GH-767]
*
builders/virtualbox-ovf:
`shutdown_timeout`
config works. [GH-772]
*
builders/vmware-iso: Remote driver works properly again. [GH-773]
## 0.5.0 (12/30/2013)
...
...
builder/vmware/iso/driver_esx5.go
View file @
c74b3758
...
...
@@ -214,6 +214,10 @@ func (d *ESX5Driver) SSHAddress(state multistep.StateBag) (string, error) {
return
address
,
nil
}
//-------------------------------------------------------------------
// OutputDir implementation
//-------------------------------------------------------------------
func
(
d
*
ESX5Driver
)
DirExists
()
(
bool
,
error
)
{
err
:=
d
.
sh
(
"test"
,
"-e"
,
d
.
outputDir
)
return
err
==
nil
,
nil
...
...
@@ -258,6 +262,10 @@ func (d *ESX5Driver) SetOutputDir(path string) {
d
.
outputDir
=
d
.
datastorePath
(
path
)
}
func
(
d
*
ESX5Driver
)
String
()
string
{
return
d
.
outputDir
}
func
(
d
*
ESX5Driver
)
datastorePath
(
path
string
)
string
{
return
filepath
.
Join
(
"/vmfs/volumes"
,
d
.
Datastore
,
path
)
}
...
...
builder/vmware/iso/driver_esx5_test.go
View file @
c74b3758
...
...
@@ -9,6 +9,10 @@ func TestESX5Driver_implDriver(t *testing.T) {
var
_
vmwcommon
.
Driver
=
new
(
ESX5Driver
)
}
func
TestESX5Driver_implOutputDir
(
t
*
testing
.
T
)
{
var
_
vmwcommon
.
OutputDir
=
new
(
ESX5Driver
)
}
func
TestESX5Driver_implRemoteDriver
(
t
*
testing
.
T
)
{
var
_
RemoteDriver
=
new
(
ESX5Driver
)
}
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