Commit a099e32d authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazonebs: Handle case where no AMIs

parent f67fdeca
...@@ -102,12 +102,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook) packer.Artifact { ...@@ -102,12 +102,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook) packer.Artifact {
b.runner = &multistep.BasicRunner{Steps: steps} b.runner = &multistep.BasicRunner{Steps: steps}
b.runner.Run(state) b.runner.Run(state)
// If we were cancelled, then return no artifacts // If there are no AMIs, then jsut return
if raw, ok := state["cancelled"]; ok { if _, ok := state["amis"]; !ok {
cancelled := raw.(bool) return nil
if cancelled {
return nil
}
} }
// Build the artifact and return it // Build the artifact and return it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment