'Perform a flavor action.'

def _action(self, action, flavor, info, **kwargs):

    body = {action: info}
    self.run_hooks('modify_body_for_action', body, **kwargs)
    url = ('/flavors/%s/action' % base.getid(flavor))
    (resp, body) = self.api.client.post(url, body=body)
    items = [self.resource_class(self, res) for res in body['flavor_access']]
    return base.ListWithMeta(items, resp)
