From ef0a09172010535ecb971f579a2a6bf35c593059 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Tue, 8 Aug 2017 14:53:56 -0700 Subject: [PATCH] continue, not break --- builder/amazon/common/step_encrypted_ami.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/common/step_encrypted_ami.go b/builder/amazon/common/step_encrypted_ami.go index 3e3b6023d..16c4ce7a8 100644 --- a/builder/amazon/common/step_encrypted_ami.go +++ b/builder/amazon/common/step_encrypted_ami.go @@ -124,7 +124,7 @@ OuterLoop: for _, origDevice := range s.AMIMappings { if origDevice.SnapshotId == *blockDevice.Ebs.SnapshotId { ui.Message(fmt.Sprintf("Keeping Snapshot ID: %s", *blockDevice.Ebs.SnapshotId)) - break OuterLoop + continue OuterLoop } }