sous-chefs / maven

Development repository for the maven cookbook
https://supermarket.chef.io/cookbooks/maven
Apache License 2.0
36 stars 153 forks source link

maven LWRP always reports updated_by_last_action(true) #68

Closed jeffbyrnes closed 7 years ago

jeffbyrnes commented 9 years ago

At line 72 of the provider code, you can see that the provider always reports it was updated, which can result in undesirable behavior (e.g., restart a service via a subscribes on an instance of the LWRP, which will restart the service on every Chef run).

You can see a great example with the cron_d cookbook in the Chef docs.

Wondering how this might be modified to improve this behavior, and be more idempotent (i.e., not report updated if nothing happened).

tas50 commented 7 years ago

This should be fixed on master now