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:
parent
b1c65bb671
commit
b2880cacc6
1 changed files with 3 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue