From 18382ac63b446d9ad0c4e97fb76254ae1a97221d Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Mon, 3 Feb 2020 16:55:33 +0100 Subject: [PATCH] Reuse the same password retriever created when initializing the Service --- lib/notary/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notary/service.go b/lib/notary/service.go index 92fe327d..708c7889 100644 --- a/lib/notary/service.go +++ b/lib/notary/service.go @@ -215,7 +215,7 @@ func (s *Service) ListDelegates(ctx context.Context, target *Key) (map[string][] gun, s.config.RemoteServer.URL, rt, - getPassphraseRetriever(), + s.retriever, trustpinning.TrustPinConfig{}) if err != nil {