component status: nil error should return empty string
If error is nil, it should return empty string instead of \"nil\". JSON marshalling will omit empty error in such case.
This commit is contained in:
@@ -88,7 +88,7 @@ func testData() (*api.PodList, *api.ServiceList, *api.ReplicationControllerList)
|
||||
func testComponentStatusData() *api.ComponentStatusList {
|
||||
good := api.ComponentStatus{
|
||||
Conditions: []api.ComponentCondition{
|
||||
{Type: api.ComponentHealthy, Status: api.ConditionTrue, Message: "ok", Error: "nil"},
|
||||
{Type: api.ComponentHealthy, Status: api.ConditionTrue, Message: "ok"},
|
||||
},
|
||||
ObjectMeta: api.ObjectMeta{Name: "servergood"},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user