mirror of https://github.com/docker/docs.git
Reset ephemeral session on renewal failure
Signed-off-by: Alexandre Beslic <abronan@docker.com>
This commit is contained in:
parent
b8d72c291d
commit
38f78b02b5
|
@ -162,6 +162,7 @@ func (s *Consul) Put(key string, value []byte, opts *WriteOptions) error {
|
|||
// Renew the session
|
||||
_, _, err := s.client.Session().Renew(p.Session, nil)
|
||||
if err != nil {
|
||||
s.ephemeralSession = ""
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue