Merge pull request #1360 from jmassara/ee_fix

builder/amazon-chroot: Fix bug with getting ec2 connection instead of source image
This commit is contained in:
Mitchell Hashimoto 2014-09-02 09:46:10 -07:00
commit dac078b451
1 changed files with 1 additions and 1 deletions

View File

@ -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...")