Skip to content

Commit

Permalink
Remove tower_legacy module_utils that appears unused (#14421)
Browse files Browse the repository at this point in the history
* Remove tower_legacy module that appears unused

* Update license details
  • Loading branch information
AlanCoding authored Feb 16, 2024
1 parent dcce024 commit 1f7be92
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 125 deletions.
2 changes: 1 addition & 1 deletion awx_collection/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ documentation: https://github.com/ansible/awx/blob/devel/awx_collection/README.m
homepage: https://www.ansible.com/
issues: https://github.com/ansible/awx/issues?q=is%3Aissue+label%3Acomponent%3Aawx_collection
license:
- GPL-3.0-only
- GPL-3.0-or-later
name: awx
namespace: awx
readme: README.md
Expand Down
119 changes: 0 additions & 119 deletions awx_collection/plugins/module_utils/tower_legacy.py

This file was deleted.

4 changes: 1 addition & 3 deletions awx_collection/test/awx/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,8 @@ def mock_load_params(self):
resource_class = resource_module.ControllerAWXKitModule
elif getattr(resource_module, 'ControllerAPIModule', None):
resource_class = resource_module.ControllerAPIModule
elif getattr(resource_module, 'TowerLegacyModule', None):
resource_class = resource_module.TowerLegacyModule
else:
raise RuntimeError("The module has neither a TowerLegacyModule, ControllerAWXKitModule or a ControllerAPIModule")
raise RuntimeError("The module has neither a ControllerAWXKitModule or a ControllerAPIModule")

with mock.patch.object(resource_class, '_load_params', new=mock_load_params):
# Call the test utility (like a mock server) instead of issuing HTTP requests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ homepage: https://www.ansible.com/
issues: https://github.com/ansible/awx/issues?q=is%3Aissue+label%3Acomponent%3Aawx_collection
license:
- GPL-3.0-or-later
# plugins/module_utils/tower_legacy.py
- BSD-2-Clause
name: {{ collection_package }}
namespace: {{ collection_namespace }}
readme: README.md
Expand Down

0 comments on commit 1f7be92

Please sign in to comment.