weldr: messages → msgs in status route

composer-cli expects `msgs`, not `messages`, and throws an exception if
it doesn't exist:

    https://github.com/weldr/lorax/blob/master/src/composer/cli/status.py#L52

It is not used anywhere else, so this is a safe change.
This commit is contained in:
Lars Karlitski 2020-05-25 12:31:26 +02:00 committed by Tom Gundersen
parent 7c0d384fde
commit 8e0dd790b7
2 changed files with 2 additions and 2 deletions

View file

@ -286,7 +286,7 @@ func (api *API) statusHandler(writer http.ResponseWriter, request *http.Request,
SchemaVersion string `json:"schema_version"`
Backend string `json:"backend"`
Build string `json:"build"`
Messages []string `json:"messages"`
Messages []string `json:"msgs"`
}
err := json.NewEncoder(writer).Encode(reply{