From 00438013c03accada2b1b924f9cc804da8e41b5d Mon Sep 17 00:00:00 2001 From: Dmytro Zghoba Date: Wed, 31 Jul 2024 16:22:53 +0200 Subject: [PATCH] [PBM-1361] 'add profile' command returns OK despite profile wasn't added --- cmd/pbm-agent/profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pbm-agent/profile.go b/cmd/pbm-agent/profile.go index 787a67592..0f9e88d8f 100644 --- a/cmd/pbm-agent/profile.go +++ b/cmd/pbm-agent/profile.go @@ -69,7 +69,7 @@ func (a *Agent) handleAddConfigProfile( return } if !got { - err = errors.Wrap(err, "lock not acquired") + err = errors.New("lock not acquired") return } defer func() {