]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
use encode('utf8') instead of str()
authorKun Huang <gareth@unitedstack.com>
Wed, 24 Jul 2013 16:19:56 +0000 (00:19 +0800)
committerKun Huang <gareth@unitedstack.com>
Wed, 24 Jul 2013 18:24:33 +0000 (02:24 +0800)
commitc98cf2d8d9dacce854e3faf1181964cfe73eb48e
treec2f3db309f5d3edb2ac198627303a46dffeb2374
parentc8355adf0c0b9a70eca0eab8f8e4e2f773654d70
use encode('utf8') instead of str()

It is not clear for converting a unicode to string by using str().
Instead we should use var.encode('utf8') to do this.

Change-Id: I8ce4c98f819c98e835a6d8298fe22f2fd0ca18b6
cinder/backup/drivers/ceph.py