'Find the specified flavor by name or id.
:param flavor: the name of the flavor to find
:returns: the id of :flavor:'

def find_flavor_by_name_or_id(self, flavor):

    return self._find_flavor_id(self.context.tenant_id, flavor)
