Merge "Handle absence of cinder default volume type"
This commit is contained in:
commit
9a7ba89e49
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user