Skip to content

Commit f6cbd5f

Browse files
committed
convert console_supported? to supports?
1 parent a7790eb commit f6cbd5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/api/vms_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def request_console_resource(type, id = nil, data = nil)
148148
case protocol.downcase
149149
when "native"
150150
enqueue_ems_action(type, id, "Requesting Native Console", :method_name => "native_console_connection") do |vm|
151-
raise _("Console protocol %{protocol} is not supported") % {:protocol => protocol} unless vm.console_supported?(protocol)
151+
raise _("Console protocol %{protocol} is not supported") % {:protocol => protocol} unless vm.supports?(:native_console)
152152

153153
vm.validate_native_console_support
154154
end

0 commit comments

Comments
 (0)