Skip to content

Commit

Permalink
don't replace missing placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
p-wall committed Dec 19, 2024
1 parent 426a1c6 commit 8a8b9bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/api/cloud_inits_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ def show
elsif [ :remote_ip ].include?(variable.to_sym)
request.remote_ip
else
helper.config(variable)
begin
helper.config(variable)
rescue KeyError
# Keep the original placeholder if the key is missing
"{{#{variable}}}"
end
end
}

Expand Down

0 comments on commit 8a8b9bc

Please sign in to comment.