summaryrefslogtreecommitdiff
path: root/trove/backup
diff options
context:
space:
mode:
authorRobert Myers <robert.myers@rackspace.com>2013-07-01 09:43:24 -0500
committerRobert Myers <robert.myers@rackspace.com>2013-07-16 14:17:37 -0500
commit1815d5d56635d98dc95b302b5bf869543d05b8cb (patch)
tree06dcb337711e0b4c689af5901dc820914e0ba41c /trove/backup
parent8c339954f04981d8fdc6bee0b3077349fd8c79f3 (diff)
downloadtrove-1815d5d56635d98dc95b302b5bf869543d05b8cb.tar.gz
Change the swift file deletion to use the manifest.2013.2.b2
* Adding a _parse_manifest helper to parse the x-object-manifest header * Delete file using the prefix in the manifest. * Fix error handling in the delete_backup method. Fixes Bug: #1194653 Change-Id: I34268f768a5cdb8085607269e2c2cb95974a539d
Diffstat (limited to 'trove/backup')
-rw-r--r--trove/backup/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/trove/backup/models.py b/trove/backup/models.py
index e0189b33..be77ca0f 100644
--- a/trove/backup/models.py
+++ b/trove/backup/models.py
@@ -35,8 +35,9 @@ class BackupState(object):
SAVING = "SAVING"
COMPLETED = "COMPLETED"
FAILED = "FAILED"
+ DELETE_FAILED = "DELETE_FAILED"
RUNNING_STATES = [NEW, BUILDING, SAVING]
- END_STATES = [COMPLETED, FAILED]
+ END_STATES = [COMPLETED, FAILED, DELETE_FAILED]
class Backup(object):