Skip to content

Commit

Permalink
Merge pull request #16826 from code-dot-org/trySnapshotDelete
Browse files Browse the repository at this point in the history
Only delete snapshot if it exists.
  • Loading branch information
ashercodeorg committed Aug 4, 2017
2 parents 8ecb056 + d881fef commit 6591ef6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/cron/push_latest_rds_backup_to_secondary_account
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ def main
)
end
ensure
copied_snapshot.delete
if copied_snapshot
copied_snapshot.delete
else
ChatClient.message 'cron-daily', 'copied_snapshot was nil'
end
end
end

Expand Down

0 comments on commit 6591ef6

Please sign in to comment.