Skip to content

Conversation

@djmitche
Copy link
Contributor

This refactors jobsearch a little and makes it refresh the cache in the case where it cannot find a label. This should fix the (relatively common!) case where a launchd plist is added with a file resource, then enabled with a service resource.

@puppetcla
Copy link

CLA signed by all contributors.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For expectations on blocks, expect { }.to is preferred over lambda { }.should

@adrienthebo
Copy link
Contributor

Thank you very much for this contribution! I had a couple of small comments on style, but this looks very good!

@djmitche
Copy link
Contributor Author

I was off for a long weekend, but I'll fix this up this week.

@djmitche
Copy link
Contributor Author

Updated. Note that this conflicts with another update made since this was branched. I can rebase and file a new PR, but the conflict should be fairly simple to resolve on mrege.

@adrienthebo
Copy link
Contributor

You can just rebase this pull request and then force push to the branch that this was filed against, and the pull request well be updated in place (if that helps).

@djmitche
Copy link
Contributor Author

This ended up pretty substantially revised as far as tests go, so please do have another look.

adrienthebo added a commit that referenced this pull request Sep 27, 2013
(#21069) refresh the cache of launchd plists on a miss
@adrienthebo adrienthebo merged commit 3ca75a6 into puppetlabs:master Sep 27, 2013
@adrienthebo
Copy link
Contributor

summary: merged into master in 3ca75a6; this should be released in 3.4.0. Thanks again for the contribution!

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.

3 participants