diff options
author | Xyon <admin@jbladen.co.uk> | 2020-01-23 20:04:52 +0000 |
---|---|---|
committer | Jordan Borean <jborean93@gmail.com> | 2020-01-24 06:04:52 +1000 |
commit | 5c721e8a47848543b4e111783235eafff221666c (patch) | |
tree | e39eff0d4f1d013469efe84ab164b66ba9304860 /lib/ansible/executor/powershell/module_manifest.py | |
parent | 14cc63dc0f765eaf20364063fd59526d3d592c5c (diff) | |
download | ansible-5c721e8a47848543b4e111783235eafff221666c.tar.gz |
Add new configuration parameter to make Windows async startup timeout configurable (#66670)
* Add new configuration parameter to make this timeout configurable
* Rename keys to be more correct and reformat exception message for whitespace handling
* Rename config away from default prefix. Add vars element and associated changes to support.
* Update 65001-allow_configuring_async_startup_timeout.yml
Co-authored-by: Matt Davis <nitzmahone@users.noreply.github.com>
Diffstat (limited to 'lib/ansible/executor/powershell/module_manifest.py')
-rw-r--r-- | lib/ansible/executor/powershell/module_manifest.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/executor/powershell/module_manifest.py b/lib/ansible/executor/powershell/module_manifest.py index 4cea859631..aa746d4755 100644 --- a/lib/ansible/executor/powershell/module_manifest.py +++ b/lib/ansible/executor/powershell/module_manifest.py @@ -294,6 +294,7 @@ def _create_powershell_wrapper(b_module_data, module_path, module_args, exec_manifest["actions"].insert(0, 'async_wrapper') exec_manifest["async_jid"] = str(random.randint(0, 999999999999)) exec_manifest["async_timeout_sec"] = async_timeout + exec_manifest["async_startup_timeout"] = C.config.get_config_value("WIN_ASYNC_STARTUP_TIMEOUT", variables=task_vars) if become and become_method == 'runas': finder.scan_exec_script('exec_wrapper') |