mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-25 01:04:00 -04:00
packer: skip the user var if there was an error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user