From 4857daa52a57a775207cfb0c7c8ca99b173a231b Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 29 Aug 2019 13:54:28 -0700 Subject: [PATCH] go-ipfs-config: plugins: don't omit empty config values Turns out the go-ipfs config logic really doesn't play well with this. Let's just keep them and avoid encoding empty values another way. --- config/plugins.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/plugins.go b/config/plugins.go index c9b148049a1f..08a1acb34f58 100644 --- a/config/plugins.go +++ b/config/plugins.go @@ -1,11 +1,11 @@ package config type Plugins struct { - Plugins map[string]Plugin `json:",omitempty"` + Plugins map[string]Plugin // TODO: Loader Path? Leaving that out for now due to security concerns. } type Plugin struct { - Disabled bool `json:",omitempty"` - Config interface{} `json:",omitempty"` + Disabled bool + Config interface{} }