app/lib/katello/util/cdn_var_substitutor.rb in katello-3.7.0.rc1 vs app/lib/katello/util/cdn_var_substitutor.rb in katello-3.7.0.rc2
- old
+ new
@@ -26,12 +26,14 @@
real_path = path_with_subs.apply_substitutions
unused_substitutions = path_with_subs.unused_substitutions
needed_substitutions = PathWithSubstitutions.new(real_path, {}).substitutions_needed
if unused_substitutions.any?
- fail Errors::CdnSubstitutionError, _("%{unused_substitutes} cannot be specified for %{content_name}"\
- " as that information is not substitutable in %{content_url} ") %
- { unaccepted_substitutions: unused_substitutions, content_name: content.name, content_url: content.content_url }
+ fail Errors::CdnSubstitutionError, _("%{unused_substitutions} cannot be specified for %{content_name}"\
+ " as that information is not substitutable in %{content_url} ") %
+ { unused_substitutions: unused_substitutions.join(','),
+ content_name: content.name,
+ content_url: content.content_url }
end
if needed_substitutions.any?
fail Errors::CdnSubstitutionError, _("Missing arguments %{substitutions} for %{content_url}") %
{ substitutions: needed_substitutions.join(','), content_url: real_path }