You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With templateable playbooks, we can pass arguments to be replaced in the playbook via the -var flag. However, if we miss one of those, then the -fillTemplates functionality won't work.
It's easy to miss that you need to supply a value for password. It does not look like the other variables ({{var}} vs {{.var}}) and it is in another section of the playbook. But if you do not supply a value for it, then -fillTemplates won't print out the SQL queries, even though you're passing all the values that are required for that:
λ:> ./sql-runner -dryRun -playbook ./playbooks/playbook.yml.tmpl -sqlroot ./sql -var start=$(gdate -d "$(gdate +%Y-%m-01) -1 month" +%Y-%m-%d),month=$(gdate -d "$(gdate +%Y-%m-01) -1 month" +%Y-%m),end=$(gdate +%Y-%m-01) -fillTemplates
2018/10/15 16:24:43 WARNING: No queries to run
(That warning message is also not very helpful.)
The text was updated successfully, but these errors were encountered:
With templateable playbooks, we can pass arguments to be replaced in the playbook via the
-var
flag. However, if we miss one of those, then the-fillTemplates
functionality won't work.For example:
It's easy to miss that you need to supply a value for
password
. It does not look like the other variables ({{var}}
vs{{.var}}
) and it is in another section of the playbook. But if you do not supply a value for it, then-fillTemplates
won't print out the SQL queries, even though you're passing all the values that are required for that:(That warning message is also not very helpful.)
The text was updated successfully, but these errors were encountered: