fix registry creation

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2023-12-20 10:05:44 +01:00
parent 7acaecb480
commit f5809848b9
2 changed files with 2 additions and 1 deletions
+1
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
+1 -1
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
}