]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
IBM Storwize driver: Add local variable assignment to "ctxt"
authorVincent Hou <sbhou@cn.ibm.com>
Fri, 10 Oct 2014 07:46:36 +0000 (15:46 +0800)
committerThomas Goirand <thomas@goirand.fr>
Sun, 14 Dec 2014 09:18:31 +0000 (09:18 +0000)
commit6961362c99cce0ed9956c01b74065c83eedf2aa6
tree52592c165d0ba5d2e2b2c69a884fbda8630fff2e
parent5c8b80f7d17fa4e3033b73cf43561298361e1a60
IBM Storwize driver: Add local variable assignment to "ctxt"

* The method get_vdisk_params in helpers.py is missing a local variable
assignment for "ctxt", causing "UnboundLocalError: local variable
'ctxt' referenced before assignment. Adding the assignment should
resolve this issue.

* Add the unit tests coverage for get_vdisk_params.

Change-Id: I564b1ef8cd1b6504d5ac8c9af0bb11bf29767d9a
closes-bug: #1379654
(cherry picked from commit afcbfe053c9165ab84af30c8e663dfaee2a79e81)
cinder/tests/test_storwize_svc.py
cinder/volume/drivers/ibm/storwize_svc/helpers.py