-
Notifications
You must be signed in to change notification settings - Fork 23.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible-test - Fix traceback in validate-modules test.
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
changelogs/fragments/ansible-test-validate-modules-no-callable.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bugfixes: | ||
- ansible-test - Fix traceback in the ``validate-modules`` sanity test when testing an Ansible module without any callables. |
23 changes: 23 additions & 0 deletions
23
...ntegration/targets/ansible-test/ansible_collections/ns/col/plugins/modules/no_callable.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/python | ||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
from __future__ import absolute_import, division, print_function | ||
__metaclass__ = type | ||
|
||
DOCUMENTATION = ''' | ||
module: no_callable | ||
short_description: No callale test module | ||
description: No callable test module. | ||
author: | ||
- Ansible Core Team | ||
''' | ||
|
||
EXAMPLES = '''#''' | ||
RETURN = '''''' | ||
|
||
from ansible.module_utils.basic import AnsibleModule | ||
|
||
|
||
if __name__ == '__main__': | ||
module = AnsibleModule(argument_spec=dict()) | ||
module.exit_json() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters