From 2630a949f7993388b3cfe6305a3ba8c0eff03068 Mon Sep 17 00:00:00 2001 From: rerorero Date: Wed, 19 Feb 2020 01:13:15 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Destroying=20a=20session=20that=20doesn'?= =?UTF-8?q?t=20exist=20returns=20status=20cod=E2=80=A6=20(#6905)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #6840 --- agent/consul/session_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/consul/session_endpoint.go b/agent/consul/session_endpoint.go index 36598b4157..05e2b5c435 100644 --- a/agent/consul/session_endpoint.go +++ b/agent/consul/session_endpoint.go @@ -58,7 +58,7 @@ func (s *Session) Apply(args *structs.SessionRequest, reply *string) error { return fmt.Errorf("Session lookup failed: %v", err) } if existing == nil { - return fmt.Errorf("Unknown session %q", args.Session.ID) + return nil } if authz.SessionWrite(existing.Node, &authzContext) != acl.Allow { return acl.ErrPermissionDenied