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
0efabb66
Commit
0efabb66
authored
Jun 18, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/validate: better logging
parent
72178657
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
command/validate/commang.go
command/validate/commang.go
+2
-0
No files found.
command/validate/commang.go
View file @
0efabb66
...
@@ -66,6 +66,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
...
@@ -66,6 +66,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
buildNames
:=
tpl
.
BuildNames
()
buildNames
:=
tpl
.
BuildNames
()
builds
:=
make
([]
packer
.
Build
,
0
,
len
(
buildNames
))
builds
:=
make
([]
packer
.
Build
,
0
,
len
(
buildNames
))
for
_
,
buildName
:=
range
buildNames
{
for
_
,
buildName
:=
range
buildNames
{
log
.
Printf
(
"Creating build from template for: %s"
,
buildName
)
build
,
err
:=
tpl
.
Build
(
buildName
,
components
)
build
,
err
:=
tpl
.
Build
(
buildName
,
components
)
if
err
!=
nil
{
if
err
!=
nil
{
errs
=
append
(
errs
,
fmt
.
Errorf
(
"Build '%s': %s"
,
buildName
,
err
))
errs
=
append
(
errs
,
fmt
.
Errorf
(
"Build '%s': %s"
,
buildName
,
err
))
...
@@ -77,6 +78,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
...
@@ -77,6 +78,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
// Check the configuration of all builds
// Check the configuration of all builds
for
_
,
b
:=
range
builds
{
for
_
,
b
:=
range
builds
{
log
.
Printf
(
"Preparing build: %s"
,
b
.
Name
())
err
:=
b
.
Prepare
()
err
:=
b
.
Prepare
()
if
err
!=
nil
{
if
err
!=
nil
{
errs
=
append
(
errs
,
fmt
.
Errorf
(
"Errors validating build '%s'. %s"
,
b
.
Name
(),
err
))
errs
=
append
(
errs
,
fmt
.
Errorf
(
"Errors validating build '%s'. %s"
,
b
.
Name
(),
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