Add integration test that modules are loaded from the expected locations (#24170)

* Add integration test that modules are loaded from the expected locations
* Fix ping module to pass PEP8
This commit is contained in:
Toshio Kuratomi 2017-05-01 08:52:25 -07:00 committed by GitHub
commit 3428f42120
20 changed files with 555 additions and 2 deletions

View file

@ -48,6 +48,7 @@ ansible webservers -m ping
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec=dict(
@ -62,6 +63,6 @@ def main():
result['ping'] = module.params['data']
module.exit_json(**result)
if __name__ == '__main__':
main()