mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-24 03:46:37 +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 != "" {
|
||||
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")
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user