saltstack-formulas / bind-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
29 stars 117 forks source link

Fixes issue where query.log throws warning for replace=True #68

Closed tedski closed 7 years ago

tedski commented 7 years ago

Fixes issue where file.managed is used to create an empty file without source/contents_pillar/contents_grains.

[WARNING ] State for file: /var/log/bind9/query.log - Neither 'source' nor 'contents' nor 'contents_pillar' nor 'contents_grains' was defined, yet 'replace' was set to 'True'. As there is no source to replace the file with, 'replace' has been set to 'False' to avoid reading the file unnecessarily.
javierbertoli commented 7 years ago

Hi @tedski, mind you squash so we merge this PR?

tedski commented 7 years ago

all squashed up, @javierbertoli. ready for merge.

javierbertoli commented 7 years ago

Thanks @tedski !