builder/amazon/chroot: fix types
This commit is contained in:
parent
121e9791a3
commit
4358830953
|
@ -48,7 +48,7 @@ func (s *StepInstanceInfo) Run(state map[string]interface{}) multistep.StepActio
|
||||||
return multistep.ActionHalt
|
return multistep.ActionHalt
|
||||||
}
|
}
|
||||||
|
|
||||||
instance := instancesResp.Reservations[0].Instances[0]
|
instance := &instancesResp.Reservations[0].Instances[0]
|
||||||
state["instance"] = instance
|
state["instance"] = instance
|
||||||
|
|
||||||
return multistep.ActionContinue
|
return multistep.ActionContinue
|
||||||
|
|
|
@ -35,7 +35,7 @@ func (s *StepSourceAMIInfo) Run(state map[string]interface{}) multistep.StepActi
|
||||||
return multistep.ActionHalt
|
return multistep.ActionHalt
|
||||||
}
|
}
|
||||||
|
|
||||||
image := imageResp.Images[0]
|
image := &imageResp.Images[0]
|
||||||
|
|
||||||
// It must be EBS-backed otherwise the build won't work
|
// It must be EBS-backed otherwise the build won't work
|
||||||
if image.RootDeviceType != "ebs" {
|
if image.RootDeviceType != "ebs" {
|
||||||
|
|
Loading…
Reference in New Issue