Skip to content

Commit

Permalink
Task creation: fix error flash message
Browse files Browse the repository at this point in the history
Since task creation failed, we cannot treat task_id as integer.
  • Loading branch information
mzazrivec committed Sep 4, 2018
1 parent 9f9bc48 commit bb576bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/vm_remote.rb
Expand Up @@ -95,8 +95,7 @@ def console_before_task(console_type)

task_id = record.remote_console_acquire_ticket_queue(ticket_type, session[:userid])
unless task_id.kind_of?(Integer)
add_flash(_("Console access failed: Task start failed: ID [%{id}]") %
{:id => task_id.to_s}, :error)
add_flash(_("Console access failed: Task start failed"), :error)
end

if @flash_array
Expand Down

0 comments on commit bb576bf

Please sign in to comment.