mirror of
https://github.com/go-kratos/kratos.git
synced 2025-02-03 13:11:42 +02:00
fix apollo validate (#423)
This commit is contained in:
parent
3d20bed941
commit
fa790d1453
@ -96,7 +96,7 @@ func buildConfigForApollo() (c *Config, err error) {
|
|||||||
if clusterFromEnv := os.Getenv("APOLLO_CLUSTER"); clusterFromEnv != "" {
|
if clusterFromEnv := os.Getenv("APOLLO_CLUSTER"); clusterFromEnv != "" {
|
||||||
confCluster = clusterFromEnv
|
confCluster = clusterFromEnv
|
||||||
}
|
}
|
||||||
if confAppID == "" {
|
if confCluster == "" {
|
||||||
err = errors.New("invalid apollo cluster, pass it via APOLLO_CLUSTER=xxx with env or --apollo.cluster=xxx with flag")
|
err = errors.New("invalid apollo cluster, pass it via APOLLO_CLUSTER=xxx with env or --apollo.cluster=xxx with flag")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user