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

Commit e32badf

Browse files
committed
fix default region issue
1 parent 843379e commit e32badf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/client/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,9 @@ func (cli *DockerCli) checkCloudConfig() error {
112112
}
113113

114114
func (cli *DockerCli) getDefaultRegion() string {
115+
cc, ok := cli.configFile.CloudConfig[cliconfig.DefaultHyperFormat]
116+
if ok {
117+
return cc.Region
118+
}
115119
return cliconfig.DefaultHyperRegion
116120
}

0 commit comments

Comments
 (0)