Skip to content

Commit 934211c

Browse files
committed
[core] Include _messageType in MesosCommandRespose objects
1 parent 581fb86 commit 934211c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/controlcommands/mesoscommandresponse.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type MesosCommandResponseBase struct {
4141
CommandName string `json:"name"`
4242
CommandId uuid.Array `json:"id"`
4343
ErrorString string `json:"error"`
44+
MessageType string `json:"_messageType"`
4445
}
4546

4647
func NewMesosCommandResponse(mesosCommand MesosCommand, err error) (*MesosCommandResponseBase) {
@@ -60,6 +61,7 @@ func NewMesosCommandResponse(mesosCommand MesosCommand, err error) (*MesosComman
6061
CommandName: mesosCommand.GetName(),
6162
CommandId: mesosCommand.GetId(),
6263
ErrorString: errStr,
64+
MessageType: "MesosCommandResponse",
6365
}
6466
}
6567

0 commit comments

Comments
 (0)