Skip to content

Commit

Permalink
fix named query template expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Sep 18, 2017
1 parent cd3cfd8 commit a8eaa97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jiracli/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ func TemplateProcessor() *template.Template {
}

func ConfigTemplate(fig *figtree.FigTree, template, command string, opts interface{}) (string, error) {
var tmp interface{}
var tmp map[string]interface{}
err := ConvertType(opts, &tmp)
if err != nil {
return "", err
}
fig.LoadAllConfigs(command+".yml", tmp)
fig.LoadAllConfigs("config.yml", tmp)
fig.LoadAllConfigs(command+".yml", &tmp)
fig.LoadAllConfigs("config.yml", &tmp)

tmpl, err := TemplateProcessor().Parse(template)
if err != nil {
Expand Down

0 comments on commit a8eaa97

Please sign in to comment.