]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port zfssa driver to Python 3
authorVictor Stinner <vstinner@redhat.com>
Sun, 8 Nov 2015 21:13:14 +0000 (22:13 +0100)
committerVictor Stinner <vstinner@redhat.com>
Sun, 8 Nov 2015 21:14:38 +0000 (22:14 +0100)
commite3ff1c3c69d76eab4115705c0c6ba71b25f8280a
tree8066db1980ec14d80aada4d69eae3b8f21932ee7
parent2c49f5ddfcb358c04bf581fc78662877c7d22738
Port zfssa driver to Python 3

* Replace base64.encodestring() with
  oslo_serialization.base64.encode_as_text() to accept Unicode as
  input (encoded to UTF-8). On Python 3, the function decodes base64
  from ASCII to get Unicode.
* tests-py3.txt: add cinder.tests.unit.test_zfssa

Partial-Implements: blueprint cinder-python3
Change-Id: I29a1a752d4cad5796fba1f21fe88238cb4414717
cinder/volume/drivers/zfssa/zfssaiscsi.py
cinder/volume/drivers/zfssa/zfssanfs.py
tests-py3.txt