215
216
if statusInfo, err := machine.InstanceStatus(); err != nil {
216
217
return errors.Annotatef(err, "retrieving machine %s instance status", machine.Id())
218
219
return newStatusError("machine %s not running", machine.Id(), statusInfo.Status)
222
223
return errors.Annotatef(err, "retrieving machine %s status", machine.Id())
227
229
if rebootAction, err := machine.ShouldRebootOrShutdown(); err != nil {