mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-29 03:04:02 -04:00
builder/amazonebs: More comments
This commit is contained in:
@@ -18,6 +18,10 @@ type Builder struct {
|
||||
}
|
||||
|
||||
func (b *Builder) Prepare(raw interface{}) (err error) {
|
||||
// Marshal and unmarshal the raw configuration as a way to get it
|
||||
// into our "config" struct.
|
||||
// TODO: Use the reflection package and provide this as an API for
|
||||
// better error messages
|
||||
jsonBytes, err := json.Marshal(raw)
|
||||
if err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user