func getImages(c *cli.Client) []cli.JMap { ret, _ := c.GetMany("images", "images") images := make([]cli.JMap, len(ret)) for i := range ret { images[i] = ret[i] } return images }
func getGuests(c *cli.Client) []cli.JMap { ret, _ := c.GetMany("guests", "guests") guests := make([]cli.JMap, len(ret)) for i := range ret { guests[i] = ret[i] } return guests }
func getHVs(c *cli.Client) []cli.JMap { ret, _ := c.GetMany("hypervisors", "hypervisors") // wasteful you say? hvs := make([]cli.JMap, len(ret)) for i := range ret { hvs[i] = ret[i] } return hvs }