'Get the flavor object for the specified flavor name or id.
:param flavor_identifier: the name or id of the flavor to find
:returns: a flavor object with name or id :flavor:'

def get_flavor(self, flavor_identifier):

    try:
        flavor = self.client().flavors.get(flavor_identifier)
    except exceptions.NotFound:
        flavor = self.client().flavors.find(name=flavor_identifier)
    return flavor
