diff --git a/app/services/foreman/renderer.rb b/app/services/foreman/renderer.rb index b05d8d23a132..10608d960ff8 100644 --- a/app/services/foreman/renderer.rb +++ b/app/services/foreman/renderer.rb @@ -28,7 +28,7 @@ def render_template_to_tempfile(template:, prefix:, host: nil, params: {}, varia file end - def get_source(klass: nil, template:, **args) + def get_source(template:, klass: nil, **args) klass ||= Foreman::Renderer::Source::Database klass.new(template) end diff --git a/app/services/foreman/renderer/source/string.rb b/app/services/foreman/renderer/source/string.rb index 27c04b972234..e7ad67584a90 100644 --- a/app/services/foreman/renderer/source/string.rb +++ b/app/services/foreman/renderer/source/string.rb @@ -2,7 +2,7 @@ module Foreman module Renderer module Source class String < Foreman::Renderer::Source::Base - def initialize(name: 'Unnamed', content:) + def initialize(content:, name: 'Unnamed') @name = name @content = content end