'Gets extra specs for the given object.'

def _get_volume_extra_specs(self, obj):

    type_id = obj.get('volume_type_id')
    if type_id:
        return volume_types.get_volume_type_extra_specs(type_id)
    return {}
