seba-260 - fixed some bugs
Change-Id: I214e2c11046a868156d6308d65160d99c9fd3ab2
diff --git a/api/handler.go b/api/handler.go
index f2e832e..3b1754f 100644
--- a/api/handler.go
+++ b/api/handler.go
@@ -57,7 +57,6 @@
myChan := getSyncChannel()
<-myChan
defer done(myChan, true)
- fmt.Println("HELLO WTF")
ping := in.GetPing()
pong := EchoReplyMessage{Pong: ping}
return &pong, nil
@@ -190,6 +189,6 @@
GetInventory - returns a json dump of a particular seba-pod
*/
func (s *Server) GetInventory(ctx context.Context, in *InventoryMessage) (*InventoryReturn, error) {
- json := inventory.GatherInventory(in.GetClli())
- return &InventoryReturn{JsonDump: json}, nil
+ json, err := inventory.GatherInventory(in.GetClli())
+ return &InventoryReturn{JsonDump: json}, err
}