Merge "Remove hardcode of container_name in backups"
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user