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
812ba354
Commit
812ba354
authored
Sep 08, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmt
parent
b2255751
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
builder/docker/driver.go
builder/docker/driver.go
+1
-1
builder/vmware/common/driver_fusion6.go
builder/vmware/common/driver_fusion6.go
+1
-1
builder/vmware/common/run_config.go
builder/vmware/common/run_config.go
+2
-2
builder/vmware/common/step_configure_vnc.go
builder/vmware/common/step_configure_vnc.go
+3
-3
packer/config_template_test.go
packer/config_template_test.go
+4
-4
No files found.
builder/docker/driver.go
View file @
812ba354
...
...
@@ -59,5 +59,5 @@ type ContainerConfig struct {
// This is the template that is used for the RunCommand in the ContainerConfig.
type
startContainerTemplate
struct
{
Image
string
Image
string
}
builder/vmware/common/driver_fusion6.go
View file @
812ba354
...
...
@@ -25,7 +25,7 @@ func (d *Fusion6Driver) Clone(dst, src string) error {
if
strings
.
Contains
(
err
.
Error
(),
"parameters was invalid"
)
{
return
fmt
.
Errorf
(
"Clone is not supported with your version of Fusion. Packer "
+
"only works with Fusion 6 Professional. Please verify your version."
)
"only works with Fusion 6 Professional. Please verify your version."
)
}
return
err
...
...
builder/vmware/common/run_config.go
View file @
812ba354
...
...
@@ -16,8 +16,8 @@ type RunConfig struct {
HTTPPortMin
uint
`mapstructure:"http_port_min"`
HTTPPortMax
uint
`mapstructure:"http_port_max"`
VNCPortMin
uint
`mapstructure:"vnc_port_min"`
VNCPortMax
uint
`mapstructure:"vnc_port_max"`
VNCPortMin
uint
`mapstructure:"vnc_port_min"`
VNCPortMax
uint
`mapstructure:"vnc_port_max"`
BootWait
time
.
Duration
``
}
...
...
builder/vmware/common/step_configure_vnc.go
View file @
812ba354
...
...
@@ -20,9 +20,9 @@ import (
//
// Produces:
// vnc_port uint - The port that VNC is configured to listen on.
type
StepConfigureVNC
struct
{
VNCPortMin
uint
VNCPortMax
uint
type
StepConfigureVNC
struct
{
VNCPortMin
uint
VNCPortMax
uint
}
type
VNCAddressFinder
interface
{
...
...
packer/config_template_test.go
View file @
812ba354
...
...
@@ -56,14 +56,14 @@ func TestConfigTemplateProcess_isotime_withFormat(t *testing.T) {
if
err
==
nil
{
t
.
Fatalf
(
"err: cannot have more than 1 input"
)
}
result
,
err
:=
tpl
.
Process
(
`{{isotime "20060102"}}`
,
nil
)
if
err
!=
nil
{
t
.
Fatalf
(
"err: %s"
,
err
)
}
ti
:=
time
.
Now
()
.
UTC
()
val
:=
fmt
.
Sprintf
(
"%04d%02d%02d"
,
ti
.
Year
(),
ti
.
Month
(),
ti
.
Day
())
ti
:=
time
.
Now
()
.
UTC
()
val
:=
fmt
.
Sprintf
(
"%04d%02d%02d"
,
ti
.
Year
(),
ti
.
Month
(),
ti
.
Day
())
if
result
!=
val
{
t
.
Fatalf
(
"val: %s (formated: %s)"
,
val
,
result
)
...
...
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