Merge "Fix create consistency group form exception"

This commit is contained in:
Jenkins 2017-04-10 16:49:20 +00:00 committed by Gerrit Code Review
commit c88d5c1de3
1 changed files with 2 additions and 1 deletions

View File

@ -314,7 +314,8 @@ class CreateCGroupWorkflow(workflows.Workflow):
if not invalid_backend:
for vol_type in vol_types:
if selected_vol_type == vol_type.id:
if hasattr(vol_type, "extra_specs"):
if (hasattr(vol_type, "extra_specs") and
'volume_backend_name' in vol_type.extra_specs):
vol_type_backend = \
vol_type.extra_specs['volume_backend_name']
if vol_type_backend is None: