Merge "Handle absence of cinder default volume type"

This commit is contained in:
Jenkins 2016-01-13 20:30:40 +00:00 committed by Gerrit Code Review
commit 9a7ba89e49

View File

@ -95,6 +95,7 @@ class CreateView(forms.ModalFormView):
def get_initial(self):
initial = super(CreateView, self).get_initial()
self.default_vol_type = None
try:
self.default_vol_type = cinder.volume_type_default(self.request)
initial['type'] = self.default_vol_type.name