With Paramiko 1.13.0, the method exec_command now returns Unicode.
This causes a problem when the driver tries to build the XML returned
from the LeftHand array. The XML header returned from the array defines
the encoding as encoding=UTF-8. Therefore, we must now ensure the
encoding passed to the parser is utf-8.
Change-Id: I7b504626e2d9a0ee2b62820b11f56eb136e31987
closes-bug: #1298608
(cherry picked from commit 57e8cdb9dd8e24919bc2243438a6bded53491b3e)
Reviewed: https:/ /review. openstack. org/110800 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=00b7574d9a6 e3818b3d032a8de 05a03ddd94c2d6
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit 00b7574d9a6e381 8b3d032a8de05a0 3ddd94c2d6
Author: Jim Branen <email address hidden>
Date: Fri Apr 4 13:36:42 2014 -0700
Fixes HP LeftHand driver with Paramiko 1.13.0
With Paramiko 1.13.0, the method exec_command now returns Unicode.
This causes a problem when the driver tries to build the XML returned
from the LeftHand array. The XML header returned from the array defines
the encoding as encoding=UTF-8. Therefore, we must now ensure the
encoding passed to the parser is utf-8.
Change-Id: I7b504626e2d9a0 ee2b62820b11f56 eb136e31987 19bc2243438a6bd ed53491b3e)
closes-bug: #1298608
(cherry picked from commit 57e8cdb9dd8e249