packer-community / packer-windows-plugins

A suite of Packer plugins for provisioning Windows machines
112 stars 20 forks source link

Exit code is 0 when AWS VPC ID does not exist #40

Closed mefellows closed 9 years ago

mefellows commented 9 years ago

When a VPC is provided to a template that does not exist, the build exit code is 0, instead of 1:

mfellows@matt.mit /tmp $ packer build buildagent.json
buildagent output will be in this color.

==> buildagent: Inspecting the source AMI...
==> buildagent: Creating temporary security group for this instance...
==> buildagent: The vpc ID 'vpc-12345678' does not exist (InvalidVpcID.NotFound)
Build 'buildagent' finished.

==> Builds finished. The artifacts of successful builds are:

mfellows@matt.mit /tmp $  echo $?
0
mefellows commented 9 years ago

Submitted https://github.com/mitchellh/packer/pull/2022 to upstream project to fix issue also. Closing this one.