]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Filter scheduler: Fix KeyError on invalid create request
authorEric Harney <eharney@redhat.com>
Tue, 8 Sep 2015 22:40:53 +0000 (18:40 -0400)
committerEric Harney <eharney@redhat.com>
Tue, 8 Sep 2015 22:46:32 +0000 (18:46 -0400)
commit364e8cb92b0584de84a99bb9e5a664d3d94657da
tree8a1c28499039e1f597cf21065fd00cd9ac1db4e4
parent126e4f215e5fc0275a3c660990504b4e758de099
Filter scheduler: Fix KeyError on invalid create request

An invalid request can generate a KeyError here rather
than the intended failure message.

Closes-Bug: #1493580

Change-Id: Ia73d8c2834e564ee14d72303001e11be2ea14900
cinder/scheduler/filter_scheduler.py
cinder/tests/unit/scheduler/test_filter_scheduler.py