ansible/changelogs/fragments/74783-run-command-thread-safety.yml
Matt Martz 98138584b7
Don't mutate os.environ in AnsibleModule.run_command, make a copy, and pass to Popen (#74791)
* Don't mutate os.environ in AnsibleModule.run_command, make a copy, and pass to Popen. Fixes #74783

* Simplify code a bit

* More simple

* Address some other potentially non threadsafe operations

* Add if around umask

* Address unit test assumptions

* Add clog frag

* yaml syntax issue
2021-05-25 12:00:47 -04:00

5 lines
215 B
YAML

bugfixes:
- >
``AnsibleModule.run_command`` - Address thread safety issues, concerning mutating the environment,
current working directory, and umask.
(https://github.com/ansible/ansible/issues/74783)