diff options
author | Tyler Cipriani <tcipriani@wikimedia.org> | 2018-11-02 09:40:58 -0600 |
---|---|---|
committer | Tyler Cipriani <tcipriani@wikimedia.org> | 2018-12-10 17:33:15 -0700 |
commit | 56e830f6417fe1ebda1bdc2cf7810dcccd9a7da6 (patch) | |
tree | a081badcc905a516c3421f9534555fe916b961e3 /cmd | |
parent | 6597c943b6af809cc30e80070ad42953cab05dc4 (diff) | |
download | blubber-56e830f6417fe1ebda1bdc2cf7810dcccd9a7da6.tar.gz |
Use JSON as canonical config format
Uses the github.com/ghodss/yaml library to convert YAML to JSON before
unmarshaling for the purposes of supporting YAML and JSON input while
converting to only support JSON internally.
Bug: T207694
Change-Id: I00668014907e9ea54917f5d5067cac08d0668053
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/blubberoid/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/blubberoid/main.go b/cmd/blubberoid/main.go index f342a57..73b10a6 100644 --- a/cmd/blubberoid/main.go +++ b/cmd/blubberoid/main.go @@ -71,7 +71,7 @@ func blubberoid(res http.ResponseWriter, req *http.Request) { return } - cfg, err := config.ReadConfig(body) + cfg, err := config.ReadYAMLConfig(body) if err != nil { if config.IsValidationError(err) { |