func (command *commandGet) Execute(resource *handler.Resource) { flavorID := resource.Params.(*paramsGet).flavor flavor, err := flavors.Get(command.Ctx.ServiceClient, flavorID).Extract() if err != nil { resource.Err = err return } resource.Result = structs.Map(flavor) }
// Get returns details about a single flavor, identity by ID. func Get(client *gophercloud.ServiceClient, id string) os.GetResult { return os.Get(client, id) }