Skip to content

Commit

Permalink
Merge pull request Kong#1606 from Mashape/fix/template-defaults
Browse files Browse the repository at this point in the history
fix(conf) fallback for lack of value for var placeholders
  • Loading branch information
thibaultcha authored Sep 8, 2016
2 parents 3be7192 + bf0cbb4 commit 7a9e7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/cmd/utils/prefix_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ local function compile_conf(kong_config, conf_template)
local post_template = pl_template.substitute(conf_template, compile_env)
return string.gsub(post_template, "(${%b{}})", function(w)
local name = w:sub(4, -3)
return compile_env[name:lower()]
return compile_env[name:lower()] or ""
end)
end

Expand Down

0 comments on commit 7a9e7b2

Please sign in to comment.