]> 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)
committerVincent Hou <sbhou@cn.ibm.com>
Thu, 16 Oct 2014 01:11:01 +0000 (09:11 +0800)
commitafcbfe053c9165ab84af30c8e663dfaee2a79e81
tree15a23a81f8d9595f645a93aadf312c3a45ecb511
parent83d7bd0cb75b80cb2f2bfcbf4e7172329f3e6926
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
cinder/tests/test_storwize_svc.py
cinder/volume/drivers/ibm/storwize_svc/helpers.py