Skip to content

Commit

Permalink
Update SSH server expiry on heartbeat (#50490)
Browse files Browse the repository at this point in the history
  • Loading branch information
espadolini authored Dec 20, 2024
1 parent 4a5ce30 commit f4ce60a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/inventory/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ func (c *Controller) keepAliveSSHServer(handle *upstreamHandle, now time.Time) e
return nil
}

handle.sshServer.resource.SetExpiry(now.Add(c.serverTTL).UTC())
if _, err := c.auth.UpsertNode(c.closeContext, handle.sshServer.resource); err == nil {
if handle.sshServer.retryUpsert {
c.testEvent(sshUpsertRetryOk)
Expand Down

0 comments on commit f4ce60a

Please sign in to comment.