mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
fix(snapshots): increase the chance of taking a snapshot for edge environments EE-4795 (#9211)
This commit is contained in:
parent
615af4fdee
commit
146681e1c7
4 changed files with 55 additions and 4 deletions
|
@ -138,6 +138,11 @@ func (handler *Handler) inspectStatus(tx dataservices.DataStoreTx, r *http.Reque
|
|||
endpoint.EdgeID = edgeIdentifier
|
||||
}
|
||||
|
||||
// Take an initial snapshot
|
||||
if endpoint.LastCheckInDate == 0 {
|
||||
handler.ReverseTunnelService.SetTunnelStatusToRequired(endpoint.ID)
|
||||
}
|
||||
|
||||
agentPlatform, agentPlatformErr := parseAgentPlatform(r)
|
||||
if agentPlatformErr != nil {
|
||||
return nil, httperror.BadRequest("agent platform header is not valid", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue