Add pretty printing.

This commit is contained in:
Brendan Burns
2014-06-08 21:00:59 -07:00
parent 3d0231e0f8
commit fdcf273d50
3 changed files with 5 additions and 3 deletions

View File

@@ -78,6 +78,7 @@ func (sr *ServiceRegistryStorage) Delete(id string) error {
func (sr *ServiceRegistryStorage) Extract(body string) (interface{}, error) {
var svc Service
err := json.Unmarshal([]byte(body), &svc)
svc.Kind = "cluster#service"
return svc, err
}