]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Make unicode-to-utf8 conversion universal in ceph backup driver.
authorEdward Hope-Morley <edward.hope-morley@canonical.com>
Mon, 29 Jul 2013 08:41:35 +0000 (09:41 +0100)
committerEdward Hope-Morley <edward.hope-morley@canonical.com>
Mon, 29 Jul 2013 15:41:31 +0000 (16:41 +0100)
commit31238c748e1c0cffb9ba412b3bf55b87f991714a
treed3739aa9cb5ea13724344c557d11a4b844495d47
parent7df656ff0be9fef34a4e19f7b83a0cae554db1e7
Make unicode-to-utf8 conversion universal in ceph backup driver.

librbd does not like unicode strings. A patch was
recently applied (c98cf2d8) to make all config
values utf8 but there are other areas of the ceph
backup driver where this also applies. This patch
adds a new method which converts strings to utf8
and replaces all relevant uses of str() with this
new conversion.

Change-Id: I8c3b01d1ea00b601c599396e3a662f172ffb9757
Fixes: bug #1206044
cinder/backup/drivers/ceph.py