hashicorp / hcat

Hashicorp Configuration and Templating library (hcat, pronounced hashicat)
Mozilla Public License 2.0
96 stars 12 forks source link

make template.Notify()'s bool return meaningful #98

Closed eikenb closed 2 years ago

eikenb commented 2 years ago

Change template.Notify() to return true if it marks the template as dirty, returns false if it has already been marked as dirty.

This change is to clarify the meaning of the template's Notify's boolean return value as well as making it play nicer with the watcher to help eliminate duplicate template notifications.