From ca84e2ac55b11c39668372cd0e74ec5eaa1cb34b Mon Sep 17 00:00:00 2001 From: James Massara Date: Mon, 21 Jul 2014 15:28:47 -0700 Subject: [PATCH] Fix bug with getting ec2 connection instead of source image --- builder/amazon/chroot/step_check_root_device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/chroot/step_check_root_device.go b/builder/amazon/chroot/step_check_root_device.go index d4d202f25..da18599aa 100644 --- a/builder/amazon/chroot/step_check_root_device.go +++ b/builder/amazon/chroot/step_check_root_device.go @@ -12,7 +12,7 @@ import ( type StepCheckRootDevice struct{} func (s *StepCheckRootDevice) Run(state multistep.StateBag) multistep.StepAction { - image := state.Get("ec2").(*ec2.Image) + image := state.Get("source_image").(*ec2.Image) ui := state.Get("ui").(packer.Ui) ui.Say("Checking the root device on source AMI...")