builder/amazonebs: More comments

This commit is contained in:
Mitchell Hashimoto 2013-05-09 14:10:57 -07:00
parent 4c37ce5304
commit fad5233868
1 changed files with 4 additions and 0 deletions

View File

@ -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