Labels response will return json with empty host_id rather than omit (#1078)

This commit is contained in:
John Murphy
2017-01-23 23:37:09 +08:00
committed by GitHub
parent 99e5af916a
commit 1a567b3f9f
+1 -1
View File
@@ -17,7 +17,7 @@ type labelResponse struct {
Online uint `json:"online"`
Offline uint `json:"offline"`
MissingInAction uint `json:"missing_in_action"`
HostIDs []uint `json:"host_ids,omitempty"`
HostIDs []uint `json:"host_ids"`
}
type getLabelResponse struct {