Merge "Fix NoneType has no attribute get" into stable/ocata

This commit is contained in:
Zuul 2018-02-09 21:35:58 +00:00 committed by Gerrit Code Review
commit c10a5629a2
1 changed files with 2 additions and 1 deletions

View File

@ -297,7 +297,8 @@ class FilterScheduler(driver.Scheduler):
# Since Cinder is using mixed filters from Oslo and it's own, which
# takes 'resource_XX' and 'volume_XX' as input respectively, copying
# 'volume_XX' to 'resource_XX' will make both filters happy.
volume_type = resource_type = request_spec.get("volume_type")
volume_type = request_spec.get("volume_type")
resource_type = request_spec.get("volume_type", {})
config_options = self._get_configuration_options()