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

vmware_guest_disk: Use functions from module_utils #914

Merged

Conversation

mariolenz
Copy link
Collaborator

SUMMARY

Remove duplicate code from vmware_guest_disk by using the functions from module_utils.vm_device_helper. PyVmomiDeviceHelper.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

vmware_guest_disk

ADDITIONAL INFORMATION

Follow-up to PR #909

@mariolenz mariolenz changed the title [WIP] vmware_guest_disk: Use functions from module_utils vmware_guest_disk: Use functions from module_utils Jun 27, 2021
@mariolenz
Copy link
Collaborator Author

@Akasurde @sky-joker @Tomorrow9 I have a feeling that I could have consolidated more code here. But I don't want to change too much in one PR.

Copy link
Collaborator

@Tomorrow9 Tomorrow9 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@mariolenz
Copy link
Collaborator Author

LGTM, thanks.

Thanks for reviewing @Tomorrow9! Since you approved and CI succeeded, I don't think I'll have to wait for a second opinion from @Akasurde or @sky-joker and will add the gatelabel.

@mariolenz mariolenz added the gate label Jun 29, 2021
Copy link
Collaborator

@sky-joker sky-joker left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks, @mariolenz for the patch!

@ansible-zuul ansible-zuul bot merged commit ddb7bc3 into ansible-collections:main Jun 29, 2021
@mariolenz mariolenz deleted the refactor_vmware_guest_disk branch June 30, 2021 15:31
ansible-zuul bot pushed a commit that referenced this pull request Jul 16, 2021
Refactor vmware guest controller

Depends-On: #967
SUMMARY
Remove duplicate code from vmware_guest_controller by using functions from module_utils.vm_device_helper.PyVmomiDeviceHelper. Also, move some definitions from vmware_guest_controller and vmware_guest_disk to module_utils.vm_device_helper.PyVmomiDeviceHelper.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
vmware_guest_controller
vmware_guest_disk
ADDITIONAL INFORMATION
Follow-up to PR #914

Reviewed-by: Diane Wang <None>
Reviewed-by: Mario Lenz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants