community.general/lib/ansible
Ricardo Carrillo Cruz a56de25df5
Fix persistent command timeout handling (#34791)
* Fix persistent command timeout handling

We were using play context timeout on ansible-connect to set
the persistent command timeout handler. Thus, we were ignoring
the persistent_command_timeout setting.
Moreover, even by changing that on ansible-connection, were again
overriding it on cliconf send_command, since in a same process we can
just set a single alarm and cliconf send_command alarm setup is executed
after ansible-connection alarm setup.

* Remove alarm setting on cliconf send_command

The alarm is set regardless before it is executed by ansible-connection.
Setting an alarm again, overrides/disables the previous ones as a single
process can just have a single alarm set.

* Move the setting of persistent command timeout to network_cli

We do also use ansible-connection for connection local, so if a
user provides a timeout via provider that would be ignored if we
set the value on ansible-connection.
Moving that logic to network_cli plugin constructor makes both
connections to work.

* Remove debug statements

* Set the persistent command timeout on task_executor

We can't set the timeout on ansible-connection nor network_cli,
otherwise tasks using provider timeout won't work.
2018-01-13 15:54:44 +01:00
..
cli Add a config toggle for agnostic become prompts, defaulting to False for the 2.5 release. Fixes #33999 (#34761) 2018-01-12 10:28:46 -06:00
compat Create a short license for PSF and MIT. (#32212) 2017-11-06 10:25:30 -08:00
config Add a config toggle for agnostic become prompts, defaulting to False for the 2.5 release. Fixes #33999 (#34761) 2018-01-12 10:28:46 -06:00
errors Correct the AnsibleError exception to call its superclass's constructor 2017-12-21 20:42:44 -08:00
executor Fix persistent command timeout handling (#34791) 2018-01-13 15:54:44 +01:00
galaxy Catch exception comparing role versions, and provide a user friendly error message. Fixes #32301 (#34427) 2018-01-11 17:41:23 -06:00
inventory dont warn on not matching 'all' (#32806) 2017-12-15 15:43:51 -05:00
module_utils Adds selective assignment of kwargs (#34813) 2018-01-12 09:50:53 -08:00
modules Refactors and deprecation removals (#34830) 2018-01-12 23:03:41 -08:00
parsing Misc. typo is display log (#34388) 2018-01-05 07:44:28 +05:30
playbook Provide a way to explicitly invoke the debugger (#34006) 2018-01-09 13:50:07 -06:00
plugins Fix persistent command timeout handling (#34791) 2018-01-13 15:54:44 +01:00
template [template/vars] Use to_native(exception) as a fallback for Python 3 which doesn't have a .message attribute (#34044) 2017-12-19 17:34:46 -05:00
utils Mellanox OS name change: MLNXOS changed to ONYX (#34753) 2018-01-11 22:21:17 +00:00
vars fix item var in delegation (#32986) 2017-11-20 09:29:55 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Fixes eos sending 'None' to device (#33015) 2017-11-17 11:33:54 -05:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00