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

Commit e125e40

Browse files
committed
fix pull/search issue for new region
1 parent a9011ff commit e125e40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/client/config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ func (cli *DockerCli) configureCloud(serverAddress, flRegion, flAccesskey, flSec
106106
func (cli *DockerCli) checkCloudConfig() error {
107107
_, ok := cli.configFile.CloudConfig[cli.host]
108108
if !ok {
109-
return fmt.Errorf("Config info for the host is not found, please run 'hyper config %s' first.", cli.host)
109+
_, ok = cli.configFile.CloudConfig[cliconfig.DefaultHyperFormat]
110+
if !ok {
111+
return fmt.Errorf("Config info for the host is not found, please run 'hyper config %s' first.", cli.host)
112+
}
110113
}
111114
return nil
112115
}

0 commit comments

Comments
 (0)