Add kind in all cases for list.

pull/6/head
Brendan Burns 2014-06-07 21:57:36 -07:00
parent 6e7b3fd969
commit 0181953242
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ func (storage *ControllerRegistryStorage) List(*url.URL) (interface{}, error) {
controllers, err := storage.registry.ListControllers()
if err == nil {
result = ReplicationControllerList{
Items: controllers,
JSONBase: JSONBase{Kind: "cluster#replicationControllerList"},
Items: controllers,
}
}
return result, err