diff options
author | Matt Clay <matt@mystile.com> | 2017-08-23 20:09:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-23 20:09:50 +0200 |
commit | 5ea8a5e34bb7e4d86837a5e5a05e701a66c0edbb (patch) | |
tree | d757cb049809e0ddb36b73c171df038963f29b0b /test/runner/lib/classification.py | |
parent | elb_application_lb: fix issue with boto parameter validation on Rules (#27333) (diff) | |
download | ansible-5ea8a5e34bb7e4d86837a5e5a05e701a66c0edbb.tar.xz ansible-5ea8a5e34bb7e4d86837a5e5a05e701a66c0edbb.zip |
Add support for setup targets to ansible-test. (#28544)
* Add support for setup targets to ansible-test.
* Code cleanup.
Diffstat (limited to 'test/runner/lib/classification.py')
-rw-r--r-- | test/runner/lib/classification.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/runner/lib/classification.py b/test/runner/lib/classification.py index b91a5b5cbc..59a6587ac2 100644 --- a/test/runner/lib/classification.py +++ b/test/runner/lib/classification.py @@ -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 |