]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
xio: fix regression in authentication
authorVictor Stinner <vstinner@redhat.com>
Tue, 1 Dec 2015 10:00:03 +0000 (11:00 +0100)
committerVictor Stinner <vstinner@redhat.com>
Tue, 1 Dec 2015 14:40:52 +0000 (14:40 +0000)
commitacdf1f6ad5bcf29bcbf9b81a2debec24eca05548
tree60a5c5e0d1356904fc5b469dbdfdbc6f690167d0
parente62cb5eac5ee8074235a855b0ccafa1134eecc19
xio: fix regression in authentication

The change I75a5dee2fd1f8cf45dbf416b0353736a43efd8e8 replaced
base64.encodestring(auth_key)[:-1] with
oslo_serialization.base64.encode_as_text(auth_key)[:-1]. It's wrong
because base64.encodestring() adds '\n' to the output, wheras
oslo_serialization.base64.encode_as_text() doesn't add '\n'.

This change removes '[:-1]' to strip the newline, it's no more
needed.

Partial-Implements: blueprint cinder-python3
Change-Id: Ib015a850d7cc2e1259518fecfe66c836002b28d9
cinder/volume/drivers/xio.py