Creating volume prompt message always contain name
The creating volume successful prompt message format is:
'Creating volume "%s"' % data["name"]
the data['name'] could be empty since it is not request.
But volume.name is always has a value, that the name or
id of volume.
Closes-Bug:
@@ -425,7 +425,7 @@ class CreateForm(forms.SelfHandlingForm):
availability_zone=az,
source_volid=volume_id,
group_id=data.get('group') or None)
- message = _('Creating volume "%s"') % data['name']
+ message = _('Creating volume "%s"') % volume.name
messages.info(request, message)
return volume
except ValidationError as e:
