forked from puppetlabs/puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre_resource_eval to POSIX provider
This commit adds API documentation, updates a call to, and adds a spec test for the pre_resource_eval class function in the POSIX file provider (which was added in puppetlabs#9349). When called, pre_resource_eval will create a class variable, selinux_handle, which can be used when handling data for SELinux. Since the handle is a class variable, we can avoid running into performance issues since the handle can be re-used instead of needing to make a new one each time. Additionally, since the old method wasn't completely removed & replaced (and instead deprecated), less changes to old spec tests are needed as their calls to the deprecated method aren't impacted.
- Loading branch information
Showing
3 changed files
with
22 additions
and
0 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
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