community.general/lib/ansible/plugins
Toshio Kuratomi 71f46d69d6 First bit of fixing temporary to have one source of truth (#35747)
* First bit of fixing temporary to have one source of truth

* Fix pep8

* Remove explicit make_tmp_path() in copy

The copy action plugin sets TRANSFER_FILES=True so it does not need to
set the temporary directory explicitly; the base class's run() method
will do that for us.

* Fix for calling a module's run when a shell has already created a temp path.

* Remember to inform the rest of the world when tempdir is removed

* New strategy for how to warn on passing tmp

Now we just warn when calling the parent class run() early.  If the
module does a late call to the parent run() and doesn't make use of the
temporary directory, then we don't check for the possibility that the
user mistakenly is sending tmp in.  If we truly deprecate this (rather
than ignoring it forever) then we might want to switch back to checking
for someone passing a value in as tmp.

* Remove tmp parameter from _execute_module as well

* Port all action plugins to not send tmp explicitly

This is now handled inside of _execute_module via the
_connection._shell.tempdir attribute.

Also update warnings and docs to tell people to set the attribute
instead of using _execute_module's tmp parameter.

* Always set local tempdir variable
2018-02-07 15:11:36 -08:00
..
action First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
cache add inventory caching & use in virtualbox inventory plugin (#34510) 2018-01-22 19:33:14 -05:00
callback add support for configuring smtpport in callback_mail 2018-02-05 22:58:38 -05:00
cliconf [WIP] Add new network module for EdgeOS (#33109) 2018-02-07 10:36:26 -05:00
connection Fix: global name 'HAS_IPADDRESS' is not defined. 2018-02-05 06:41:12 -08:00
filter Added `+1` to the `end` in `random` filter so that it was inclusive (#27215) 2018-01-26 11:36:44 -06:00
inventory [cloud] snake_case hostvars in aws_ec2 inventory plugin (#35306) 2018-01-26 15:10:45 -05:00
lookup Fix lookup plugins documentation (nios, conjur_variable) (#35847) 2018-02-07 13:14:51 -08:00
netconf Check if data_xml object in present in NCElement object (#35604) 2018-02-01 21:38:49 +05:30
shell Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
strategy Fix triggering parent's always with run_once set (#35464) 2018-01-30 13:16:19 +01:00
terminal [WIP] Add new network module for EdgeOS (#33109) 2018-02-07 10:36:26 -05: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 Implement plugin filtering 2018-01-22 16:54:53 -08:00