fix apollo validate (#423)

pull/427/head
Tony 5 years ago committed by GitHub
parent 3d20bed941
commit fa790d1453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/conf/paladin/apollo/apollo.go

@ -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…
Cancel
Save