Skip to content

Commit

Permalink
Remove newlines from result message
Browse files Browse the repository at this point in the history
Newlines can cause trouble with translations as well as presentation in
the UI. This particular string doesn't actually need the newlines, so
this commit changes it to just not have them.

Alternative to ManageIQ/manageiq#23213
  • Loading branch information
Fryguy committed Sep 30, 2024
1 parent d612e03 commit 5c1a047
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/controllers/miq_ae_tools_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,7 @@ def upload
if params[:upload] && params[:upload][:datastore].present?
begin
MiqAeDatastore.upload(params[:upload][:datastore])
flash_to_session(_("Datastore import was successful.
Namespaces updated/added: %{namespace_stats}
Classes updated/added: %{class_stats}
Instances updated/added: %{instance_stats}
Methods updated/added: %{method_stats}") % stat_options)
flash_to_session(_("Datastore import was successful. Added/Updated %{namespace_stats} Namespaces, %{class_stats} Classes, %{instance_stats} Instances, %{method_stats} Methods.") % stat_options)
redirect_to(:action => 'import_export')
rescue StandardError => bang
flash_to_session(_("Error during 'upload': %{message}") % {:message => bang.message}, :error)
Expand Down

0 comments on commit 5c1a047

Please sign in to comment.