@staticmethod
def _nullify_flavor_description(flavor_info):
    """Helper method to nullify descriptions from a set of primitive
        flavors.

        Note that we don't remove the flavor description since that would
        make the versioned notification FlavorPayload have to handle the field
        not being set on the embedded instance.flavor.

        :param dict: dict of primitive flavor objects where the values are the
            flavors which get persisted in the instance_extra.flavor table.
        """
    for flavor in flavor_info.values():
        if flavor and 'description' in flavor['nova_object.data']:
            flavor['nova_object.data']['description'] = None
