]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes HP LeftHand driver with Paramiko 1.13.0
authorJim Branen <james.branen@hp.com>
Fri, 4 Apr 2014 20:36:42 +0000 (13:36 -0700)
committerJim Branen <james.branen@hp.com>
Wed, 9 Apr 2014 15:43:51 +0000 (08:43 -0700)
commit57e8cdb9dd8e24919bc2243438a6bded53491b3e
treee4480a11d0c0ea9f31283910c75a032c7e072ec7
parentdffae650bd719b73c55e4a462288c61d5cfc8ead
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: I7b504626e2d9a0ee2b62820b11f56eb136e31987
closes-bug: #1298608
cinder/tests/test_hplefthand.py
cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py