]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
resolve KeyError for IBM Storwize/SVC driver
authorXiao Chen <chenxiao@cn.ibm.com>
Thu, 6 Mar 2014 10:13:46 +0000 (18:13 +0800)
committerXiao Chen <chenxiao@cn.ibm.com>
Tue, 18 Mar 2014 01:26:34 +0000 (09:26 +0800)
commitdf03a9b9b7025a0e13d9387a74c304875dec0918
treead31ce97d0241d49430cea351540df914811de2e
parent834f7769736b60d95ab74d4dd7563560f99506be
resolve KeyError for IBM Storwize/SVC driver

When using iSCSI protocol to conenct IBM v7000, and compression
is not enabled for the system, KeyError may occur because of the response
item's lack of 'license_compression_enclosures'. So add a check to
resolve it.

Change-Id: Ie53631ea5b047650897313ad5614f6e1df5377f2
Closes-Bug: #1288645
cinder/tests/test_storwize_svc.py
cinder/volume/drivers/ibm/storwize_svc/helpers.py