From c83f0796172b820e75ae3c49c23a8141942a42f6 Mon Sep 17 00:00:00 2001 From: Nick Cabatoff Date: Tue, 10 Dec 2024 15:51:25 -0500 Subject: [PATCH] Failure to create a postgres integration should not be labelled as a mongodb error (#203) --- .changelog/203.txt | 3 +++ internal/commands/vaultsecrets/integrations/create.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changelog/203.txt diff --git a/.changelog/203.txt b/.changelog/203.txt new file mode 100644 index 00000000..fbaf6db3 --- /dev/null +++ b/.changelog/203.txt @@ -0,0 +1,3 @@ +```release-note:bug +vault-secrets: corrected error output for postgres integration creation, MongoDB Atlas -> Postgres. +``` diff --git a/internal/commands/vaultsecrets/integrations/create.go b/internal/commands/vaultsecrets/integrations/create.go index b89e6f31..7c7e2951 100644 --- a/internal/commands/vaultsecrets/integrations/create.go +++ b/internal/commands/vaultsecrets/integrations/create.go @@ -271,7 +271,7 @@ func createRun(opts *CreateOpts) error { _, err = opts.Client.CreatePostgresIntegration(req, nil) if err != nil { - return fmt.Errorf("failed to create MongoDB Atlas integration: %w", err) + return fmt.Errorf("failed to create Postgres integration: %w", err) } default: