mirror of https://github.com/ansible/ansible.git
Set alter_sys=True instead of False to address backwards incompat (#64670)
* Set alter_sys=True instead of False to address backwards incompat * ci_complete * Add integration test * ci_complete * sanity * ci_complete * Changelog fragment * Update import test and validate-modules to matchpull/64690/head
parent
c1493e5267
commit
b93d92ef9a
@ -0,0 +1,4 @@
|
||||
bugfixes:
|
||||
- module executor - Address issue where changes to Ansiballz module code, change the behavior
|
||||
of module execution as it pertains to ``__file__`` and ``sys.modules``
|
||||
(https://github.com/ansible/ansible/issues/64664)
|
||||
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/python
|
||||
# https://github.com/ansible/ansible/issues/64664
|
||||
# https://github.com/ansible/ansible/issues/64479
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
import sys
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
||||
def main():
|
||||
module = AnsibleModule({})
|
||||
|
||||
this_module = sys.modules[__name__]
|
||||
module.exit_json(
|
||||
failed=not getattr(this_module, 'AnsibleModule', False)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Loading…
Reference in New Issue