From 0d8b560be32eec21caa4563127b002cf2829aadb Mon Sep 17 00:00:00 2001 From: Craig Gumbley <craiggumbley@gmail.com> Date: Wed, 26 Apr 2023 12:27:43 +0100 Subject: [PATCH] (MAINT) testing --- object_templates/functions/v4_function.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/object_templates/functions/v4_function.erb b/object_templates/functions/v4_function.erb index 6b253af..684e1c2 100644 --- a/object_templates/functions/v4_function.erb +++ b/object_templates/functions/v4_function.erb @@ -1,8 +1,9 @@ # frozen_string_literal: true +<% function_name = name.to_sym.inspect.tr('"', "'") -%> <% dispatch_name = name.split(':').last -%> # https://github.com/puppetlabs/puppet-specifications/blob/master/language/func-api.md#the-4x-api -Puppet::Functions.create_function(<%= name.to_sym.inspect %>) do +Puppet::Functions.create_function(<%= function_name %>) do dispatch <%= dispatch_name.to_sym.inspect %> do param 'Numeric', :a return_type 'Numeric' -- GitLab