fmt
This commit is contained in:
parent
0f39a4451c
commit
d76b7e8c36
|
@ -41,6 +41,7 @@ func (s *StepRunSourceInstance) Run(state map[string]interface{}) multistep.Step
|
||||||
state["error"] = fmt.Errorf("There was a problem with the source AMI: %s", err)
|
state["error"] = fmt.Errorf("There was a problem with the source AMI: %s", err)
|
||||||
return multistep.ActionHalt
|
return multistep.ActionHalt
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(imageResp.Images) != 1 {
|
if len(imageResp.Images) != 1 {
|
||||||
state["error"] = fmt.Errorf("The source AMI '%s' could not be found.", s.SourceAMI)
|
state["error"] = fmt.Errorf("The source AMI '%s' could not be found.", s.SourceAMI)
|
||||||
return multistep.ActionHalt
|
return multistep.ActionHalt
|
||||||
|
|
Loading…
Reference in New Issue