Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 0e7ddca

Browse files
committed
fix other region issue
1 parent 3db1520 commit 0e7ddca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/client/cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ func NewDockerCli(in io.ReadCloser, out, err io.Writer, clientFlags *cli.ClientF
157157
return err
158158
}
159159
var cloudConfig cliconfig.CloudConfig
160-
cc, ok := configFile.CloudConfig[host]
161-
if ok && !dft {
160+
cc, ok := configFile.CloudConfig[cliconfig.DefaultHyperFormat]
161+
if ok && dft {
162162
cloudConfig.AccessKey = cc.AccessKey
163163
cloudConfig.SecretKey = cc.SecretKey
164164
} else {
165-
cc, ok = configFile.CloudConfig[cliconfig.DefaultHyperFormat]
165+
cc, ok = configFile.CloudConfig[host]
166166
if ok {
167167
cloudConfig.AccessKey = cc.AccessKey
168168
cloudConfig.SecretKey = cc.SecretKey

0 commit comments

Comments
 (0)