Skip to content

Commit 92302a6

Browse files
Mir Shahriartamalsaha
authored andcommitted
Set Provider to Kind (#6)
1 parent 88e444a commit 92302a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cmd/config/set.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func setContext(req *setContextRequest) {
8686
}
8787
switch req.Provider {
8888
case s3.Kind, "aws":
89-
nc.Config = stow.ConfigMap{}
89+
nc.Provider = s3.Kind
9090
if req.s3ConfigAccessKeyID != "" {
9191
nc.Config[s3.ConfigAccessKeyID] = req.s3ConfigAccessKeyID
9292
}
@@ -100,6 +100,7 @@ func setContext(req *setContextRequest) {
100100
nc.Config[s3.ConfigSecretKey] = req.s3ConfigSecretKey
101101
}
102102
case gcs.Kind, "gs":
103+
nc.Provider = gcs.Kind
103104
if req.gcsConfigJSONKeyPath != "" {
104105
jsonKey, err := ioutil.ReadFile(req.gcsConfigJSONKeyPath)
105106
term.ExitOnError(err)

0 commit comments

Comments
 (0)