Call MarkHostSeen from authenticate host (#881)

This commit is contained in:
Mike Arpaia 2017-01-11 09:30:13 -07:00 committed by GitHub
parent 242ee30531
commit c2084026d1

View File

@ -40,6 +40,10 @@ func (svc service) AuthenticateHost(ctx context.Context, nodeKey string) (*kolid
nodeInvalid: true,
}
}
err = svc.ds.MarkHostSeen(host, svc.clock.Now())
if err != nil {
return nil, osqueryError{message: "failed to make host seen: " + err.Error()}
}
return host, nil
}