mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-01 06:41:26 -07:00
Add support for setup targets to ansible-test. (#28544)
* Add support for setup targets to ansible-test. * Code cleanup.
This commit is contained in:
parent
282e743eb0
commit
5ea8a5e34b
6 changed files with 99 additions and 37 deletions
|
@ -247,14 +247,14 @@ class PathMapper(object):
|
|||
return minimal
|
||||
|
||||
if path.startswith('lib/ansible/modules/'):
|
||||
module = self.module_names_by_path.get(path)
|
||||
module_name = self.module_names_by_path.get(path)
|
||||
|
||||
if module:
|
||||
if module_name:
|
||||
return {
|
||||
'units': module if module in self.units_modules else None,
|
||||
'integration': self.posix_integration_by_module.get(module) if ext == '.py' else None,
|
||||
'windows-integration': self.windows_integration_by_module.get(module) if ext == '.ps1' else None,
|
||||
'network-integration': self.network_integration_by_module.get(module),
|
||||
'units': module_name if module_name in self.units_modules else None,
|
||||
'integration': self.posix_integration_by_module.get(module_name) if ext == '.py' else None,
|
||||
'windows-integration': self.windows_integration_by_module.get(module_name) if ext == '.ps1' else None,
|
||||
'network-integration': self.network_integration_by_module.get(module_name),
|
||||
}
|
||||
|
||||
return minimal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue