Skip to content

Commit

Permalink
Merge pull request #9 from agrare/add_acquire_ticket_for_webmks_consoles
Browse files Browse the repository at this point in the history
Add vm_acquire_ticket for webmks console types
  • Loading branch information
blomquisg authored Feb 14, 2017
2 parents 9597c98 + dad0246 commit f6ff5c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/models/manageiq/providers/vmware/infra_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,16 @@ def vm_acquire_mks_ticket(vm, options = {})
end
alias_method :vm_remote_console_mks_acquire_ticket, :vm_acquire_mks_ticket

def vm_acquire_ticket(vm, options = {})
invoke_vim_ws(:acquireTicket, vm, options[:user_event], options[:ticket_type])
end
alias_method :vm_remote_console_acquire_ticket, :vm_acquire_ticket

def vm_acquire_webmks_ticket(vm, options = {})
vm_acquire_ticket(vm, options.merge(:ticket_type => 'webmks'))
end
alias_method :vm_remote_console_acquire_webmks_ticket, :vm_acquire_webmks_ticket

def vm_add_miq_alarm(vm, _options = {})
result = nil
vm.with_provider_object do |vim_vm|
Expand Down

0 comments on commit f6ff5c0

Please sign in to comment.