builder/amazon/chroot: fix types

This commit is contained in:
Mitchell Hashimoto 2013-07-29 22:48:01 -07:00
parent 76071eafc6
commit 25eca62986
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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" {