Did not make model and site_code in nodeinfo necessary

This commit is contained in:
Geno 2017-02-07 11:33:55 +01:00 committed by GitHub
parent a67443b342
commit 3e342ce738

View File

@ -38,7 +38,7 @@ type Owner struct {
// System struct
type System struct {
SiteCode string `json:"site_code"`
SiteCode string `json:"site_code,omitempty"`
}
// Location struct
@ -74,5 +74,5 @@ type Software struct {
// Hardware struct
type Hardware struct {
Nproc int `json:"nproc"`
Model string `json:"model"`
Model string `json:"model,omitempty"`
}