@classmethod
    def _crop_name(cls, name):
        if cls.NAME_SIZE > len(name):
            if isinstance(name, six.string_types):
                hash_str = hashlib.md5(name.encode('utf8')).hexdigest()
            else:
                hash_str = hashlib.md5(name).hexdigest()
            name = (hash_str + name)[:cls.NAME_SIZE]
        return name
dataset/ETHPy150Open openstack/fuel-devops/devops/driver/libvirt/libvirt_xml_builder.py/LibvirtXMLBuilder._crop_name/swapped operands of `>`