Remove hardcode of container_name in backups
If user doesn't set container name for volume backup, Horizon sets default value 'volumebackups'. If Cinder is configured with different default value, this behaviour will cause an error. Since Cinder is able to handle case when container name for backup is not set, we should remove this hardcode from Horizon. Change-Id: Ib121ac1d38f11e967ef059de57a8198c5e890198 Closes-Bug: #1631930
This commit is contained in:
parent
5e4a31a17a
commit
1d13a05246
@ -42,9 +42,6 @@ class CreateBackupForm(forms.SelfHandlingForm):
|
||||
volume_id = forms.CharField(widget=forms.HiddenInput())
|
||||
|
||||
def handle(self, request, data):
|
||||
# Create a container for the user if no input is given
|
||||
if not data['container_name']:
|
||||
data['container_name'] = 'volumebackups'
|
||||
|
||||
try:
|
||||
backup = api.cinder.volume_backup_create(request,
|
||||
|
Loading…
x
Reference in New Issue
Block a user