From 38ef3b6ef62fc27e9389e7a46eaca3f1f16d3d89 Mon Sep 17 00:00:00 2001 From: neha_gupta Date: Wed, 27 Sep 2023 22:07:15 +0530 Subject: [PATCH] call repo connect in connect S3 cmd (#4383) Call repo.connect() in S3 connect command. Was this missed as part of - https://github.com/alcionai/corso/pull/4343/files or am I misunderstanding something. #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included #### Type of change - [ ] :bug: Bugfix #### Issue(s) * # #### Test Plan - [ ] :muscle: Manua --- src/cli/repo/s3.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli/repo/s3.go b/src/cli/repo/s3.go index 343dddf03..a450def04 100644 --- a/src/cli/repo/s3.go +++ b/src/cli/repo/s3.go @@ -222,6 +222,10 @@ func connectS3Cmd(cmd *cobra.Command, args []string) error { opts, repoID) if err != nil { + return Only(ctx, clues.Wrap(err, "Failed to create a repository controller")) + } + + if err := r.Connect(ctx); err != nil { return Only(ctx, clues.Wrap(err, "Failed to connect to the S3 repository")) }