func (command *commandGet) Execute(resource *handler.Resource) { params := resource.Params.(*paramsGet) stackName := params.stackName stackID := params.stackID stack, err := osStacks.Get(command.Ctx.ServiceClient, stackName, stackID).Extract() if err != nil { resource.Err = err return } resource.Result = stack }
// Get retreives a stack based on the stack name and stack ID. func Get(c *gophercloud.ServiceClient, stackName, stackID string) os.GetResult { return os.Get(c, stackName, stackID) }