]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix NoneType Attribute error
authorNate Potter <nathaniel.potter@intel.com>
Wed, 21 Oct 2015 15:51:39 +0000 (15:51 +0000)
committerNate Potter <nathaniel.potter@intel.com>
Wed, 21 Oct 2015 15:51:39 +0000 (15:51 +0000)
commit8a594c837c0ffeba2b6b93b79bf079d3a8129d46
tree59dae2ef1c50a414cf161049ab73833a339d7e5c
parent7fb767f2d652f070a20fd70d92585d61e56f3a50
Fix NoneType Attribute error

Currently when creating a volume without a specified
volume_type, the capabilities_filter fails saying that
NoneType object has no attribute 'get'. This patch
will make that issue instead throw an exception telling
the user that they need to specify a volume type.

Change-Id: I89635f9e4f4f44d16f391284ccc027e86c552cdf
Closes-Bug: #1446031
cinder/scheduler/filter_scheduler.py
cinder/tests/unit/scheduler/test_filter_scheduler.py