Skip to content

Commit

Permalink
convert console_supported? to supports?
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Mar 8, 2023
1 parent a7790eb commit f6cbd5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/vms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def request_console_resource(type, id = nil, data = nil)
case protocol.downcase
when "native"
enqueue_ems_action(type, id, "Requesting Native Console", :method_name => "native_console_connection") do |vm|
raise _("Console protocol %{protocol} is not supported") % {:protocol => protocol} unless vm.console_supported?(protocol)
raise _("Console protocol %{protocol} is not supported") % {:protocol => protocol} unless vm.supports?(:native_console)

vm.validate_native_console_support
end
Expand Down

0 comments on commit f6cbd5f

Please sign in to comment.