-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agent: fc-maintenance allows non-invasive commands for non-root
We now separate non-invasive and invasive code paths better. Moves around existing methods to a more logical order, grouping invasive and non-invasive methods. Some read-only commands for showing requests, metrics and the Sensu check can now be called by non-root users without the need for sudo. Clean up some uses of rm.scan() which are now handled by __enter__ which must be called for all invasive methods. This also takes care of loading requests and creating missing directory now. Add missing @require_lock decorators for invasive methods and give internal methods a underscore prefix. The latter don't have the decorator but it should be fairly obvious how to use them. PL-131813
- Loading branch information
Showing
7 changed files
with
569 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.