From dceace525a95255fcce84d15e821b68add64bd5b Mon Sep 17 00:00:00 2001 From: Herkermer Sherwood Date: Mon, 19 Dec 2016 13:29:08 -0800 Subject: [PATCH] Write all settings including overrides --- viper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper.go b/viper.go index 62c432c..d8ebdc5 100644 --- a/viper.go +++ b/viper.go @@ -1325,7 +1325,7 @@ func marshalWriter(f afero.File, configType string) error { return v.marshalWriter(f, configType) } func (v *Viper) marshalWriter(f afero.File, configType string) error { - c := v.config + c := v.AllSettings() switch configType { case "json": b, err := json.MarshalIndent(c, "", " ")