Revision b6f688dd

b/snf-cyclades-app/synnefo/logic/utils.py
33 33
from snf_django.lib.api import faults
34 34
from django.conf import settings
35 35
from copy import deepcopy
36
from synnefo.util.text import uenc
36 37

  
37 38

  
38 39
def id_from_instance_name(name):
......
192 193

  
193 194
def check_name_length(name, max_length, message):
194 195
    """Check if a string is within acceptable value length"""
195
    if len(str(name)) > max_length:
196
    if len(uenc(name)) > max_length:
196 197
        raise faults.BadRequest(message)

Also available in: Unified diff