Skip to content

Use not_if instead of ruby conditional to not update resource when unnecessary - #32

Open
nadirollo wants to merge 1 commit into
L2G:masterfrom
nadirollo:guard_instead_of_ruby_check
Open

Use not_if instead of ruby conditional to not update resource when unnecessary#32
nadirollo wants to merge 1 commit into
L2G:masterfrom
nadirollo:guard_instead_of_ruby_check

Conversation

@nadirollo

Copy link
Copy Markdown

Really small and simple change here!
I'm doing some cleanup and monitoring of the resources that are being updated in each chef run and this one pop out.
Using the chef guard not_if instead of the ruby conditional unless will have the same effect but will avoid the resource to be executed

Thanks for the cookbook!

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