]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Refactor the backup method of SwiftBackupService
authorSeif Lotfy <s.lotfy@telekom.de>
Fri, 21 Jun 2013 09:28:27 +0000 (09:28 +0000)
committerSeif Lotfy <s.lotfy@telekom.de>
Fri, 21 Jun 2013 09:28:27 +0000 (09:28 +0000)
commit66c158fb086a546e1e3a339d416ade3ecf3ae669
tree1b74c33a7de216e7548f33c3282b6b452b4add61
parenta23df3db134062ad521e82165f349b8c1bed7606
Refactor the backup method of SwiftBackupService

Export functionalities of backup to 3 new methods:
prepare_backup backup_chunk and finalize_backup. The original
backup function calls those functions. This allows other
drivers to combine them in a different logic.
e.g for the RBDDriver

Change-Id: I4f335bfcd03cd1da52a9e5c5c689d97581614af6
cinder/backup/services/swift.py
cinder/tests/backup/fake_swift_client.py