Esempio n. 1
0
func (task *provisionerTask) setErrorStatus(message string, machine *apiprovisioner.Machine, err error) error {
	logger.Errorf(message, machine, err)
	if err1 := machine.SetStatus(params.StatusError, err.Error(), nil); err1 != nil {
		// Something is wrong with this machine, better report it back.
		logger.Errorf("cannot set error status for machine %q: %v", machine, err1)
		return err1
	}
	return nil
}