community.general/lib/ansible/plugins
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
..
action Mellanox OS name change: MLNXOS changed to ONYX (#34753) 2018-01-11 22:21:17 +00:00
cache mongodb cache plugin (#34414) 2018-01-05 09:10:58 -06:00
callback Python 2.6 `str.format()` compatibility fixes. 2018-01-10 14:08:11 -08:00
cliconf Fix persistent command timeout handling (#34791) 2018-01-13 15:54:44 +01:00
connection WinRM: fix format_exc call (#34233) 2018-01-11 08:43:22 -08:00
filter Support datetime serialization in json encoder. Fixes #34312 (#34516) 2018-01-11 09:10:14 -06:00
inventory Revert "YAML inventory unit test: fix test inventory format (#33828)" (#33869) 2017-12-13 14:19:19 -05:00
lookup Python 2.6 `str.format()` compatibility fixes. 2018-01-10 14:08:11 -08:00
netconf fixes guess_os for netconf connections (#33671) 2017-12-07 20:17:41 +05:30
shell minor become/runas cleanup (#32564) 2017-11-06 11:24:04 -08:00
strategy Provide a way to explicitly invoke the debugger (#34006) 2018-01-09 13:50:07 -06:00
terminal Mellanox OS name change: MLNXOS changed to ONYX (#34753) 2018-01-11 22:21:17 +00:00
test Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
vars Scan group_vars/host_vars in sorted order 2017-11-20 21:57:42 -05:00
__init__.py fixed up get_options in AnsiblePlugin to use the correct plugin name 2017-11-22 15:35:31 -05:00
loader.py Don't cache duplicate plugin names (#34420) 2018-01-04 16:47:23 -06:00