Merge "Remove hardcode of container_name in backups"

This commit is contained in:
Jenkins
2016-10-11 18:24:23 +00:00
committed by Gerrit Code Review

View File

@@ -42,9 +42,6 @@ class CreateBackupForm(forms.SelfHandlingForm):
volume_id = forms.CharField(widget=forms.HiddenInput()) volume_id = forms.CharField(widget=forms.HiddenInput())
def handle(self, request, data): 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: try:
backup = api.cinder.volume_backup_create(request, backup = api.cinder.volume_backup_create(request,