-
Notifications
You must be signed in to change notification settings - Fork 339
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
Move PyVmomiDeviceHelper to module_utils.vm_device_helper #909
Move PyVmomiDeviceHelper to module_utils.vm_device_helper #909
Conversation
a42450a
to
53dd63e
Compare
53dd63e
to
3efd70c
Compare
recheck |
070f248
to
cb4ea2d
Compare
cb4ea2d
to
6716e08
Compare
recheck |
@sky-joker @Tomorrow9 What do you think, should we merge this? Then we could try to refactor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, will wait for @sky-joker @Tomorrow9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
vmware_guest_disk: Use functions from module_utils 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 Reviewed-by: Diane Wang <None> Reviewed-by: sky-joker <[email protected]>
SUMMARY
I think we should move the class
PyVmomiDeviceHelper
fromvmware_guest
to a module util. This way, we can use it in other modules (likevmware_guest_disk
) and avoid duplicate code. In the long run, I hope this'll make it easier for us to maintain this collection.ISSUE TYPE
COMPONENT NAME
vmware_guest
ADDITIONAL INFORMATION
Context: #905