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 support for reconfigure cdrom #244

Merged
merged 2 commits into from
May 17, 2018

Conversation

agrare
Copy link
Member

@agrare agrare commented Apr 30, 2018

Add the ability to connect and disconnect ISOs to VirtualCdrom drives

Depends on: ManageIQ/vmware_web_service#37, ManageIQ/manageiq#17365

https://bugzilla.redhat.com/show_bug.cgi?id=1533728

@miq-bot miq-bot added the wip label Apr 30, 2018
@agrare agrare force-pushed the bz_1533728_reconfigure_iso branch 2 times, most recently from b0bb49d to 4b810cd Compare April 30, 2018 16:03
@agrare agrare closed this May 2, 2018
@agrare agrare reopened this May 2, 2018
@agrare agrare force-pushed the bz_1533728_reconfigure_iso branch from 4b810cd to 475438d Compare May 14, 2018 13:10
@agrare agrare changed the title [WIP] Add support for reconfigure cdrom Add support for reconfigure cdrom May 15, 2018
@agrare agrare force-pushed the bz_1533728_reconfigure_iso branch from 475438d to 746484e Compare May 15, 2018 13:23
@agrare agrare removed the wip label May 15, 2018
@agrare
Copy link
Member Author

agrare commented May 15, 2018

@blomquisg can you review?

@@ -345,6 +357,40 @@ def remove_network_adapter_config_spec(vim_obj, vmcs, options)
end
end

def connect_cdrom_config_spec(vim_obj, vmcs, hardware, cdrom)
device = vim_obj.send(:getDeviceByLabel, cdrom[:device_name], hardware)
Copy link
Member

Choose a reason for hiding this comment

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

I know we did this before this change, but why do we send here. Are these methods private? If so, should they be public?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm good question I don't know why we do that, let me try just calling it normally.

Copy link
Member Author

Choose a reason for hiding this comment

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

Works fine, I'll change these over

@agrare agrare force-pushed the bz_1533728_reconfigure_iso branch from 746484e to b689b8c Compare May 16, 2018 19:15
@miq-bot
Copy link
Member

miq-bot commented May 16, 2018

Checked commits agrare/manageiq-providers-vmware@fd8c9eb~...b689b8c with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. 👍

@blomquisg blomquisg merged commit 1d405a3 into ManageIQ:master May 17, 2018
@agrare agrare deleted the bz_1533728_reconfigure_iso branch May 17, 2018 12:14
@agrare agrare added this to the Sprint 86 Ending May 21, 2018 milestone May 17, 2018
agrare pushed a commit to agrare/manageiq-providers-vmware that referenced this pull request Apr 15, 2019
Automation for transformation plan
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.

4 participants