packer: skip the user var if there was an error

pull/459/head
Mitchell Hashimoto 13 years ago
parent 1e4d207149
commit 633d6d8d45

@ -142,6 +142,7 @@ func ParseTemplate(data []byte) (t *Template, err error) {
if err != nil {
errors = append(errors,
fmt.Errorf("Error decoding default value for user var '%s': %s", k, err))
continue
}
t.Variables[k] = variable

Loading…
Cancel
Save