From 75f1ac97a9a5808b9a5bf7dbdea94571be3c8834 Mon Sep 17 00:00:00 2001 From: Matt Jadud Date: Mon, 4 Mar 2024 22:12:00 -0500 Subject: [PATCH] Trying to get creds in... --- build.sh | 0 cmd/bucket.go | 9 ++++++++- 2 files changed, 8 insertions(+), 1 deletion(-) mode change 100644 => 100755 build.sh diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 diff --git a/cmd/bucket.go b/cmd/bucket.go index fa97bd3..fa6c821 100644 --- a/cmd/bucket.go +++ b/cmd/bucket.go @@ -84,7 +84,14 @@ to quickly create a Cobra application.`, up, _ := vcap.GetUserProvidedCredentials("mc") bucket_local_tables(source_creds, up) } else { - up, _ := vcap.GetS3Credentials(DestinationBucket) + up, err := vcap.GetS3Credentials(DestinationBucket) + if err != nil { + logging.Logger.Printf("BACKUPS could not get s3 credentials") + os.Exit(-1) + } + if Debug { + logging.Logger.Printf("BACKUPS s3 credentials %v\n", up) + } bucket_cgov_tables(source_creds, up) }