]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
remove _check_container_exists from Swift backup driver
authorGiulio Fidente <gfidente@redhat.com>
Wed, 5 Feb 2014 00:13:41 +0000 (01:13 +0100)
committerAvishay Traeger <avishay@gmail.com>
Tue, 4 Mar 2014 05:56:26 +0000 (07:56 +0200)
commitf48ff3c851670e6b0e005eca89566c5c970f0b77
treef86381e13e1dda299352a55155c8eae7e210c1b1
parent283af11a06cc4313a6628d0bca3655e83afdc98b
remove _check_container_exists from Swift backup driver

The HTTP PUT on a Swift container is idempotent, we don't need to
check if it exists before uploading a backup.

This fixes a side issue where swiftclient was printing a TRACE of
the failed HTTP HEAD, previously in use to check if the container
existed.

Change-Id: I7bc267c948b56e30658997a9743f0d46ebb362ab
cinder/backup/drivers/swift.py
cinder/tests/test_backup_swift.py