Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix addind incron entry on first run #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gmenuel
Copy link

@gmenuel gmenuel commented Oct 19, 2016

Durring the first run of this module the incron type might not work because the incrontab command is not found. Usually puppet wait for the last moment to check this, but the check at the end of the type incron forces the check to be done earlier.

François Conil and others added 2 commits October 19, 2016 15:39
During non-interactive runs, the incron module would look for incrontab in /root (which is a directory) and yield the following error:
```
Could not prefetch incron provider 'incrontab': Puppet::Util::FileType::FileTypeFlat could not read root: Is a directory - root
Puppet::Util::FileType::FileTypeFlat could not read root: Is a directory - root
```
This patch fixes the behaviour by pointing to the actual location for the incrontab file.
…ing the provider to soon (before the incron package is installed)
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.

1 participant