Skip to content

Commit

Permalink
adding meta field to API struct and ommitting from response if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Oct 20, 2022
1 parent de22b28 commit 38f3a94
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,7 @@ type JobListStub struct {
ModifyIndex uint64
JobModifyIndex uint64
SubmitTime int64
Meta map[string]string `json:",omitempty"`
}

// JobIDSort is used to sort jobs by their job ID's.
Expand Down
2 changes: 1 addition & 1 deletion nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4734,7 +4734,7 @@ type JobListStub struct {
ModifyIndex uint64
JobModifyIndex uint64
SubmitTime int64
Meta map[string]string
Meta map[string]string `json:",omitempty"`
}

// JobSummary summarizes the state of the allocations of a job
Expand Down
1 change: 0 additions & 1 deletion ui/app/templates/components/topo-viz/datacenter.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@
</FlexMasonry>
</div>
</div>

0 comments on commit 38f3a94

Please sign in to comment.