Skip to content
Snippets Groups Projects
Commit 3eec88c4 authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Manager: don't omit empty ints, as we should store a zero value too.

parent 3399843a
No related branches found
No related tags found
No related merge requests found
......@@ -34,9 +34,9 @@ type TaskUpdate struct {
TaskStatus string `bson:"task_status,omitempty" json:"task_status,omitempty"`
ReceivedOnManager time.Time `bson:"received_on_manager" json:"-"`
Activity string `bson:"activity,omitempty" json:"activity,omitempty"`
TaskProgressPercentage int `bson:"task_progress_percentage,omitempty" json:"task_progress_percentage,omitempty"`
CurrentCommandIdx int `bson:"current_command_idx,omitempty" json:"current_command_idx,omitempty"`
CommandProgressPercentage int `bson:"command_progress_percentage,omitempty" json:"command_progress_percentage,omitempty"`
TaskProgressPercentage int `bson:"task_progress_percentage" json:"task_progress_percentage"`
CurrentCommandIdx int `bson:"current_command_idx" json:"current_command_idx"`
CommandProgressPercentage int `bson:"command_progress_percentage" json:"command_progress_percentage"`
Log string `bson:"log,omitempty" json:"log,omitempty"`
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment