builder/amazon/chroot: fix types

pull/919/head
Mitchell Hashimoto 13 years ago
parent 76071eafc6
commit 25eca62986

@ -48,7 +48,7 @@ func (s *StepInstanceInfo) Run(state map[string]interface{}) multistep.StepActio
return multistep.ActionHalt
}
instance := instancesResp.Reservations[0].Instances[0]
instance := &instancesResp.Reservations[0].Instances[0]
state["instance"] = instance
return multistep.ActionContinue

@ -35,7 +35,7 @@ func (s *StepSourceAMIInfo) Run(state map[string]interface{}) multistep.StepActi
return multistep.ActionHalt
}
image := imageResp.Images[0]
image := &imageResp.Images[0]
// It must be EBS-backed otherwise the build won't work
if image.RootDeviceType != "ebs" {

Loading…
Cancel
Save