Skip to content

Conversation

corey-hammerton
Copy link
Contributor

The original code would raise an OperationError is the backup path doesn't exist. This is not the only reason a rmtree would fail, insufficient permissions, invalid SELinux contexts, etc.
This commit wraps the rmtree functionality in a try-catch block to catch and log any exceptions that may happen.

The original code would raise an OperationError is the backup path doesn't exist. This is not the only reason a rmtree would fail, insufficient permissions, invalid SELinux contexts, etc.
This commit wraps the rmtree functionality in a try-catch block to catch and log any exceptions that may happen.
@timvaillancourt timvaillancourt self-requested a review September 24, 2018 16:32
@timvaillancourt
Copy link
Contributor

LGTM, thanks @corey-hammerton

@timvaillancourt timvaillancourt merged commit 4f10e32 into Percona-Lab:master Sep 24, 2018
@corey-hammerton corey-hammerton deleted the rotate branch September 24, 2018 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants