diff --git a/xcat-inventory/xcclient/inventory/dbsession.py b/xcat-inventory/xcclient/inventory/dbsession.py index 42332ca..d4eeec1 100644 --- a/xcat-inventory/xcclient/inventory/dbsession.py +++ b/xcat-inventory/xcclient/inventory/dbsession.py @@ -12,7 +12,9 @@ import os import sqlalchemy.exc from exceptions import * +import codecs +codecs.register(lambda name: codecs.lookup('utf8') if name == 'utf8mb4' else None) Base = declarative_base() Base.metadata.bind = None;