From 9435fa62e313b05c1f702da0d6f5612eea7fa2a3 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Fri, 13 Jan 2017 15:33:47 +0000 Subject: [PATCH] Output error causing ebs volume deletion failure When an ebs volume fails to delete, Packer reports that there was an error deleting the volume and the volume id. But it doesn't give you the details of what that error is. This commit adds the error reported back to the standard output. --- builder/amazon/ebs/step_cleanup_volumes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/amazon/ebs/step_cleanup_volumes.go b/builder/amazon/ebs/step_cleanup_volumes.go index 901e20d83..81b7137a3 100644 --- a/builder/amazon/ebs/step_cleanup_volumes.go +++ b/builder/amazon/ebs/step_cleanup_volumes.go @@ -106,6 +106,7 @@ func (s *stepCleanupVolumes) Cleanup(state multistep.StateBag) { _, err := ec2conn.DeleteVolume(&ec2.DeleteVolumeInput{VolumeId: aws.String(k)}) if err != nil { ui.Say(fmt.Sprintf("Error deleting volume: %s", k)) + ui.Say(fmt.Sprintf("The error is: %s", err)) } }