Merge pull request #8028 from kobergj/FixRegistry

Fix default registry
This commit is contained in:
kobergj
2023-12-20 10:54:21 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -3,3 +3,4 @@ Enhancement: Make nats-js-kv the default registry
The previously used default `mdns` is faulty. Deprecated it together with `consul`, `nats` and `etcd` implementations.
https://github.com/owncloud/ocis/pull/8011
https://github.com/owncloud/ocis/pull/8027

View File

@@ -119,7 +119,7 @@ func getEnvs(opts ...Option) *Config {
cfg.Type = s
}
if s := strings.Split(os.Getenv(registryAddressEnv), ","); len(s) > 0 {
if s := strings.Split(os.Getenv(registryAddressEnv), ","); len(s) > 0 && s[0] != "" {
cfg.Addresses = s
}