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
This commit is contained in:
Dag Stenstad 2015-04-21 18:45:54 +02:00
parent e288e0194c
commit 2ee904cb2d

View File

@ -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
)