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
4bd7db07
Commit
4bd7db07
authored
May 22, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go fmt
parent
82735652
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
builder/amazonebs/artifact.go
builder/amazonebs/artifact.go
+1
-1
packer/template.go
packer/template.go
+3
-3
No files found.
builder/amazonebs/artifact.go
View file @
4bd7db07
...
...
@@ -5,7 +5,7 @@ import (
"strings"
)
type
artifact
struct
{
type
artifact
struct
{
// A map of regions to AMI IDs.
amis
map
[
string
]
string
}
...
...
packer/template.go
View file @
4bd7db07
...
...
@@ -57,7 +57,7 @@ func ParseTemplate(data []byte) (t *Template, err error) {
for
i
,
v
:=
range
rawTpl
.
Builders
{
rawType
,
ok
:=
v
[
"type"
]
if
!
ok
{
errors
=
append
(
errors
,
fmt
.
Errorf
(
"builder %d: missing 'type'"
,
i
+
1
))
errors
=
append
(
errors
,
fmt
.
Errorf
(
"builder %d: missing 'type'"
,
i
+
1
))
continue
}
...
...
@@ -72,13 +72,13 @@ func ParseTemplate(data []byte) (t *Template, err error) {
// Attempt to convert the name/type to strings, but error if we can't
name
,
ok
:=
rawName
.
(
string
)
if
!
ok
{
errors
=
append
(
errors
,
fmt
.
Errorf
(
"builder %d: name must be a string"
,
i
+
1
))
errors
=
append
(
errors
,
fmt
.
Errorf
(
"builder %d: name must be a string"
,
i
+
1
))
continue
}
typeName
,
ok
:=
rawType
.
(
string
)
if
!
ok
{
errors
=
append
(
errors
,
fmt
.
Errorf
(
"builder %d: type must be a string"
,
i
+
1
))
errors
=
append
(
errors
,
fmt
.
Errorf
(
"builder %d: type must be a string"
,
i
+
1
))
continue
}
...
...
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