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).
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 asubscribes
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).