weldr: don't indent toml output

Be consistent with lorax-composer.

The integration tests do a string compare on received toml files.
This commit is contained in:
Lars Karlitski 2019-12-04 01:15:09 +01:00
parent b1c65bb671
commit b2880cacc6

View file

@ -733,7 +733,9 @@ func (api *API) blueprintsInfoHandler(writer http.ResponseWriter, request *http.
statusResponseError(writer, http.StatusBadRequest, errors)
return
}
toml.NewEncoder(writer).Encode(blueprints[0])
encoder := toml.NewEncoder(writer)
encoder.Indent = ""
encoder.Encode(blueprints[0])
} else {
errors := responseError{
ID: "InvalidChars",