Commit 25eca629 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon/chroot: fix types

parent 76071eaf
......@@ -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" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment