Fix powervc resources name out of ascii range

To fix powervc resources name out of ascii range:
UnicodeEncodeError: 'ascii' codec can't encode characters in
position 17-18: ordinal not in range(128)

Closes-Bug: #1430179
Change-Id: Icd3bb2d17dbeedbd06e04395cfee97b1eadf129b
This commit is contained in:
Jerry Cai 2015-03-10 15:33:50 +08:00
parent a717ce4cec
commit 6181667fcd
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ LOG = logging.getLogger(__name__)
CONF = config.CONF
DEFAULT_TTL = 600
reload(sys)
sys.setdefaultencoding('UTF8')
class TimeLivedCache(object):