From f15150fc3a5f056372d172d9aa102027541cc2cd Mon Sep 17 00:00:00 2001 From: jialiang <jialiangnull@gmail.com> Date: Tue, 14 Jul 2020 15:27:14 +0800 Subject: [PATCH] Fix: panic when checkRegistries --- config/provider_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/provider_config.go b/config/provider_config.go index 619508016..7cd3c1e98 100644 --- a/config/provider_config.go +++ b/config/provider_config.go @@ -48,7 +48,7 @@ type ProviderConfig struct { ConfigType map[string]string `yaml:"config_type" json:"config_type,omitempty" property:"config_type"` Registry *RegistryConfig `yaml:"registry" json:"registry,omitempty" property:"registry"` - Registries map[string]*RegistryConfig `default:"{}" yaml:"registries" json:"registries,omitempty" property:"registries"` + Registries map[string]*RegistryConfig `default:"{}" yaml:"registries" json:"registries" property:"registries"` } // UnmarshalYAML unmarshals the ProviderConfig by @unmarshal function -- GitLab