packer: skip the user var if there was an error
This commit is contained in:
parent
f0d0621855
commit
6face65ecc
|
@ -142,6 +142,7 @@ func ParseTemplate(data []byte) (t *Template, err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errors = append(errors,
|
errors = append(errors,
|
||||||
fmt.Errorf("Error decoding default value for user var '%s': %s", k, err))
|
fmt.Errorf("Error decoding default value for user var '%s': %s", k, err))
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
t.Variables[k] = variable
|
t.Variables[k] = variable
|
||||||
|
|
Loading…
Reference in New Issue