diff --git a/pkg/config/config.go b/pkg/config/config.go index 1f35cfaa..957d0148 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -58,8 +58,10 @@ func Import() error { contextPath := fmt.Sprintf("contexts.%s", name) ctx := viper.Sub(contextPath) overrides := viper.Sub("overrides") - for key, value := range overrides.AllSettings() { - ctx.Set(key, value) + if overrides != nil { + for key, value := range overrides.AllSettings() { + ctx.Set(key, value) + } } err := Write() return err