Skip to content

Commit 61dd67a

Browse files
authored
Merge pull request #859 from globocom/feat/POC_new_backup
Exception in take snapshot
2 parents 7b2a44b + ed9d2c8 commit 61dd67a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dbaas/backup/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def make_instance_snapshot_backup(
261261
raise IndexError
262262

263263
except IndexError as e:
264-
content, response = e
264+
response, content = e
265265
if response.status_code == 503:
266266
errormsg = "{} - 503 error creating snapshot for instance: {}. It will try again in 30 seconds. ".format(
267267
strftime("%d/%m/%Y %H:%M:%S"), instance

dbaas/workflow/steps/util/volume_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def new_take_snapshot(self, persist=0):
324324
LOG.info('New snapshot create status code: {}'.format(response.status_code))
325325

326326
if not response.ok:
327-
raise IndexError(response.content, response)
327+
return response, response.content
328328
return response, response.json()
329329

330330
def take_snapshot_status(self, identifier):

0 commit comments

Comments
 (0)