diff --git a/app/models/manageiq/providers/vmware/infra_manager/vm/remote_console.rb b/app/models/manageiq/providers/vmware/infra_manager/vm/remote_console.rb index 4f889cda7..963c869d4 100644 --- a/app/models/manageiq/providers/vmware/infra_manager/vm/remote_console.rb +++ b/app/models/manageiq/providers/vmware/infra_manager/vm/remote_console.rb @@ -81,12 +81,16 @@ def validate_remote_console_webmks_support end # - # VNC + # HTML5 selects the best available console type (VNC or WebMKS) # def remote_console_html5_acquire_ticket(userid, originating_server) - remote_console_vnc_acquire_ticket(userid, originating_server) + protocol = with_provider_object { |v| v.extraConfig["RemoteDisplay.vnc.enabled"] } ? 'vnc' : 'webmks' + send("remote_console_#{protocol}_acquire_ticket", userid, originating_server) end + # + # VNC + # def remote_console_vnc_acquire_ticket(userid, originating_server) validate_remote_console_acquire_ticket("vnc")