From 2ee904cb2d18955930eaf0fea650222b2952cc6f Mon Sep 17 00:00:00 2001 From: Dag Stenstad Date: Tue, 21 Apr 2015 18:45:54 +0200 Subject: [PATCH] Adds support for container selection for backup Changed argument from parsed_args.volume to parsed_args.container as per what is expected in python-cinderclient. If not defined, defaults to "backup_swift_container" in cinder.conf. Stops there being a container for every volume you take backups off. Change-Id: I4a34894222f71b0f207d007c32427040589406aa Closes-Bug: 1446751 --- openstackclient/volume/v1/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstackclient/volume/v1/backup.py b/openstackclient/volume/v1/backup.py index 71c8ed3832..03c63a0545 100644 --- a/openstackclient/volume/v1/backup.py +++ b/openstackclient/volume/v1/backup.py @@ -64,7 +64,7 @@ class CreateBackup(show.ShowOne): parsed_args.volume).id backup = volume_client.backups.create( volume_id, - parsed_args.volume, + parsed_args.container, parsed_args.name, parsed_args.description )