From fbc49c43f6ccaef15b92db12fd53f419f4ec5332 Mon Sep 17 00:00:00 2001 From: quinnwai Date: Fri, 8 Aug 2025 17:13:30 -0700 Subject: [PATCH 1/2] revert something --- data-client/g3cmd/upload-single.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-client/g3cmd/upload-single.go b/data-client/g3cmd/upload-single.go index 2885316a..5af943dd 100644 --- a/data-client/g3cmd/upload-single.go +++ b/data-client/g3cmd/upload-single.go @@ -53,7 +53,7 @@ func UploadSingle(profile string, guid string, filePath string, bucketName strin // Instantiate interface to Gen3 gen3Interface := NewGen3Interface() - _, err := conf.ParseConfig(profile) + profileConfig, err := conf.ParseConfig(profile) if err != nil { return err } From c55ff2a5c7f108c3413ef3ed1c30fa906889858e Mon Sep 17 00:00:00 2001 From: quinnwai Date: Fri, 8 Aug 2025 17:14:58 -0700 Subject: [PATCH 2/2] another one --- data-client/g3cmd/upload-single.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data-client/g3cmd/upload-single.go b/data-client/g3cmd/upload-single.go index 5af943dd..5837e10f 100644 --- a/data-client/g3cmd/upload-single.go +++ b/data-client/g3cmd/upload-single.go @@ -53,7 +53,10 @@ func UploadSingle(profile string, guid string, filePath string, bucketName strin // Instantiate interface to Gen3 gen3Interface := NewGen3Interface() - profileConfig, err := conf.ParseConfig(profile) + + // done so that profileConfig is written globally + var err error + profileConfig, err = conf.ParseConfig(profile) if err != nil { return err }