Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vm_acquire_ticket for webmks console types #9

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Feb 9, 2017

Add a method to acquire a webmks ticket for a VMware vm using the VirtualMachine#AcquireTicket method

Depends on: ManageIQ/manageiq-gems-pending#59

ManageIQ/manageiq#13798

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this alias? I would rather create a vm_remote_console_webmks_acquire_ticket wrapper with a hardcoded ticket_type.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that works, and actually AcquireMksTicket is deprecated as of 4.1 so we can make that a wrapper around this with the mks ticket type

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As i look at it, this has probably been done for some symmetry...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay I added a method to get webmks tickets specifically so you don't need to pass a :ticket_type in options

Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blomquisg blomquisg merged commit f6ff5c0 into ManageIQ:master Feb 14, 2017
@blomquisg blomquisg added this to the Sprint 55 Ending Feb 27, 2017 milestone Feb 14, 2017
@agrare agrare deleted the add_acquire_ticket_for_webmks_consoles branch February 14, 2017 18:59
agrare pushed a commit to agrare/manageiq-providers-vmware that referenced this pull request Apr 15, 2019
Automate - Enhanced messaging for Ansible and Cloud provisioning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants