Skip to content

Commit

Permalink
Merge pull request #859 from globocom/feat/POC_new_backup
Browse files Browse the repository at this point in the history
Exception in take snapshot
  • Loading branch information
nimbfire authored Apr 12, 2023
2 parents 7b2a44b + ed9d2c8 commit 61dd67a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbaas/backup/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def make_instance_snapshot_backup(
raise IndexError

except IndexError as e:
content, response = e
response, content = e
if response.status_code == 503:
errormsg = "{} - 503 error creating snapshot for instance: {}. It will try again in 30 seconds. ".format(
strftime("%d/%m/%Y %H:%M:%S"), instance
Expand Down
2 changes: 1 addition & 1 deletion dbaas/workflow/steps/util/volume_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def new_take_snapshot(self, persist=0):
LOG.info('New snapshot create status code: {}'.format(response.status_code))

if not response.ok:
raise IndexError(response.content, response)
return response, response.content
return response, response.json()

def take_snapshot_status(self, identifier):
Expand Down

0 comments on commit 61dd67a

Please sign in to comment.