From fad52338685e8a53bade14d680abe14614ffef15 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 9 May 2013 14:10:57 -0700 Subject: [PATCH] builder/amazonebs: More comments --- builder/amazonebs/builder.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder/amazonebs/builder.go b/builder/amazonebs/builder.go index 49b768723..330589c7d 100644 --- a/builder/amazonebs/builder.go +++ b/builder/amazonebs/builder.go @@ -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