Skip to content

Commit

Permalink
EmsCommon: make Rubocop happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Apr 10, 2017
1 parent f629c87 commit 792da4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/ems_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -983,18 +983,19 @@ def scanemss

def call_ems_refresh(emss)
process_emss(emss, "refresh_ems") unless emss.empty?
return if @flash_array.present?

add_flash(n_("Refresh initiated for %{count} %{model} from the %{product} Database",
"Refresh initiated for %{count} %{models} from the %{product} Database", emss.length) %
{:count => emss.length,
:product => I18n.t('product.name'),
:model => ui_lookup(:table => @table_name),
:models => ui_lookup(:tables => @table_name)}) if @flash_array.nil?
:models => ui_lookup(:tables => @table_name)})
end

# Refresh VM states for all selected or single displayed ems(s)
def refreshemss
assert_privileges(params[:pressed])
emss = []
if @lastaction == "show_list"
emss = find_checked_items
if emss.empty?
Expand Down

0 comments on commit 792da4d

Please sign in to comment.