]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix potential access to missing key
authorWalter A. Boring IV <walter.boring@hp.com>
Mon, 30 Mar 2015 17:10:45 +0000 (10:10 -0700)
committerWalter A. Boring IV <walter.boring@hp.com>
Mon, 30 Mar 2015 17:10:45 +0000 (10:10 -0700)
commit65e1b1d28286018b4df9fcfd732ec1ebb4d2a60c
tree87622638c7c72ff1ec31cc9f147db5dcbb8ebcba
parent785cc50b973a3d1d3ec48bb13c13c07027731ec1
Fix potential access to missing key

This patch puts a simple check around the 'extra_specs'
key, and makes sure it's there, while trying to inject
the multiattach capabilities filtering.

If we want to change the approach, we can do so in early
Liberty, when we enable multiattach for drivers.   At this
stage of the release, lets just do the simple and safe thing.

Change-Id: I45496e4325122ba20e79351f85945ca9804eaa61
Closes-Bug: 1438141
cinder/scheduler/filter_scheduler.py