diff --git a/app/services/foreman_templates/parse_result.rb b/app/services/foreman_templates/parse_result.rb index 4872132..ca5d92c 100644 --- a/app/services/foreman_templates/parse_result.rb +++ b/app/services/foreman_templates/parse_result.rb @@ -27,9 +27,7 @@ def to_h(verbose = false) end def errors - @template&.errors&.messages&.transform_values do |v| - v.join(', ') - end + @template&.errors&.messages || {} end def corrupted_metadata