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

[DNM] Test removing unused methods / functions #2308

Conversation

mariolenz
Copy link
Collaborator

SUMMARY

DO NOT MERGE!

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/module_utils/vm_device_helper.py
plugins/module_utils/vmware.py
plugins/module_utils/vmware_rest_client.py

ADDITIONAL INFORMATION

I only find the definitions but no usage:

~/github/community.vmware$ egrep -r '(is_nvdimm_controller|is_nvdimm_device|find_host_portgroup_by_name|find_host_portgroup_by_name|network_exists_by_name|vmdk_disk_path_split|find_vmdk_file|get_folder_by_name)' plugins/
plugins/module_utils/vmware_rest_client.py:    def get_folder_by_name(self, datacenter_name, folder_name):
plugins/module_utils/vm_device_helper.py:    def is_nvdimm_controller(device):
plugins/module_utils/vm_device_helper.py:    def is_nvdimm_device(device):
plugins/module_utils/vmware.py:def find_host_portgroup_by_name(host, portgroup_name):
plugins/module_utils/vmware.py:    def find_host_portgroup_by_name(host, portgroup_name):
plugins/module_utils/vmware.py:    def network_exists_by_name(self, network_name=None):
plugins/module_utils/vmware.py:    def vmdk_disk_path_split(self, vmdk_path):
plugins/module_utils/vmware.py:    def find_vmdk_file(self, datastore_obj, vmdk_fullpath, vmdk_filename, vmdk_folder):
~/github/community.vmware$

@mariolenz mariolenz force-pushed the 20250210-remove-unsed-methods-and-functions branch from 0b726a9 to e376f34 Compare February 10, 2025 17:46
@mariolenz
Copy link
Collaborator Author

LOL! We don't use vmdk_disk_path_split anywhere but we do have a unit test for it 😆

@mariolenz
Copy link
Collaborator Author

recheck

@mariolenz
Copy link
Collaborator Author

recheck

@mariolenz
Copy link
Collaborator Author

mariolenz commented Feb 10, 2025

License not available to perform the operationlooks familiar: #1723

@alinabuzachis @jillr Do you think you could fix this quick'n'dirty? Or do you think there's a better solution to using Zuul (#1746 ansible/zuul-config#587 (comment))?

cc @mikemorency

@alinabuzachis
Copy link
Contributor

License not available to perform the operationlooks familiar: #1723

@alinabuzachis @jillr Do you think you could fix this quick'n'dirty? Or do you think there's a better solution to using Zuul (#1746 ansible/zuul-config#587 (comment))?

cc @mikemorency

I will work on it today and let you know.

@alinabuzachis
Copy link
Contributor

recheck

@alinabuzachis
Copy link
Contributor

recheck

@mariolenz
Copy link
Collaborator Author

Thank you very much @alinabuzachis!

@mariolenz mariolenz closed this Feb 11, 2025
@mariolenz mariolenz deleted the 20250210-remove-unsed-methods-and-functions branch February 11, 2025 16:57
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.

2 participants