lyraproj/hiera

lookup writing to stderr

Closed this issue · 2 comments

Since the latest update the lookup command seems to be dumping the plugin meta information to stderr:

& lookup.exe testy
2020/03/04 14:18:30 {"version":1,"network":"unix","address":"C:\\Users\\HENRY~1.BUC\\AppData\\Local\\Temp\\terraform_backend.exe-8280.socket","functions":{"data_hash":{"terraform_backeend"}}}
2020/03/04 14:18:30 {"backend":"local","root_key":"root","config":{"path":"one.tfstate"}}
2020/03/04 14:18:30 {"root":{"two":"two","three":"two","one":"one"}}
2020/03/04 14:18:30 value
value

I've tried debugging the lookup command but I can't see what's writing it

Doh! I'll fix that

Should be fixed now, and included in lyraproj/hiera_terraform#6 as well as lyraproj/hiera_azure#1.