mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-15 05:29:11 -07:00
fix missing attribs with dirct module execution (#53875)
* fix missing attribs with dirct module execution * also make remote tmp handling smarter update tests * set default if attrib does not exist * add simple test
This commit is contained in:
parent
c6ed5b314d
commit
bda541fa0d
8 changed files with 59 additions and 30 deletions
7
test/integration/targets/run_modules/library/test.py
Normal file
7
test/integration/targets/run_modules/library/test.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
module = AnsibleModule(argument_spec=dict())
|
||||
|
||||
module.exit_json(**{'tempdir': module._remote_tmp})
|
Loading…
Add table
Add a link
Reference in a new issue