fix crash when waiting for an instance that has failed

This commit is contained in:
Clint Shryock 2015-06-15 11:53:21 -05:00
parent d015d20a24
commit d22c4173d3
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
}
latestInstance, err := WaitForState(&stateChange)
if err != nil {
err := fmt.Errorf("Error waiting for instance (%s) to become ready: %s", *s.instance.InstanceID, err)
err := fmt.Errorf("Error waiting for instance (%s) to become ready: %s", instanceId, err)
state.Put("error", err)
ui.Error(err.Error())
return multistep.ActionHalt