Matt Clay
32d786af65
Convert more http links to https.
2018-04-25 23:12:46 -07:00
John R Barker
4d67cdd1f7
Use module formatting ( #33413 )
2017-12-07 14:26:52 +00:00
Brian Coca
22d983c5c1
get_option instead of internal dict ( #33191 )
...
* get_option instead of internal dict
* fix slack issue
* not a pugin, revert get_option
2017-11-28 12:00:22 -05:00
Brian Coca
53cbc9f6ee
fix localized set options in callbacks
...
signature changed but callbacks overriding it were not updated
fixes #33006
2017-11-20 09:22:48 -05:00
Toshio Kuratomi
cc343a4376
Port ansible doc for plugins to use DOCUMENTATION variables
...
* Using docstrings conflicts with the standard use of docstrings
* PYTHON_OPTIMIZE=2 will omit docstrings. Using docstrings makes future
changes to the plugin and module code subject to the requirement that we
ensure it won't be run with optimization.
2017-09-11 18:34:09 -07:00
Brian Coca
869a318492
allow config for callbaks and some fixes
...
* only complain about ini deprecation if value is set
* set plugin config for stdout and other types
* updated plugin docs, moved several plugins to new config
* finished ssh docs
* fixed some issues seen in plugins while modifying docs
* placeholder for 'required'
* callbacks must use _plugin_options as _options already in use
2017-09-11 14:00:01 -07:00
Dag Wieers
5553b20828
Collated PEP8 fixes ( #25293 )
...
- Make PEP8 compliant
2017-06-02 12:14:11 +01:00
Brian Coca
798d05ea41
corrected object with columns
2017-05-31 13:03:10 -04:00
Brian Coca
5667603a27
fixed format
2017-05-31 12:52:44 -04:00
Brian Coca
62a434141e
ensure display is terminal sensistive
...
fixes #18248 by using display width intead of hardcoded length
2017-05-31 11:15:45 -04:00
Toshio Kuratomi
2fff690caa
Update module_utils.six to latest ( #22855 )
...
* Update module_utils.six to latest
We've been held back on the version of six we could use on the module
side to 1.4.x because of python-2.4 compatibility. Now that our minimum
is Python-2.6, we can update to the latest version of six in
module_utils and get rid of the second copy in lib/ansible/compat.
2017-03-23 13:35:05 -07:00
Matt Clay
d0d1158c5e
PEP 8 cleanup. ( #20789 )
...
* PEP 8 E703 cleanup.
* PEP 8 E701 cleanup.
* PEP 8 E711 cleanup.
* PEP 8 W191 and E101 cleanup.
2017-01-28 00:12:11 -08:00
Matt Clay
d913f69ba1
PEP 8 W291 whitespace cleanup.
2017-01-27 17:08:02 -08:00
Andrea Tartaglia
59227d8c31
Removed dict.iteritems() in several other files.
...
This is for py3 compatibility #18506
2016-12-14 08:01:45 -08:00
koralsky
4e194d71bd
import reduce from six label:python3 ( #18561 )
...
* import 'reduce' from six
* import reduce in facts fix
2016-11-22 11:22:24 -08:00
Brian Coca
729686a434
added back spaces for profile_tasks formatting
2016-07-06 15:39:09 -04:00
Brian Coca
faec03aabc
fix encoding issues in profile_tasks ( #16522 )
...
* fix encoding issues in profile_tasks
fixes #16521
* really fix it
* unicode the nested
* simpler format
* readded space after name
2016-07-01 10:21:49 -04:00
Brian Coca
b2a6784a9f
changed the output to keep backwards compat
...
still shows path when verbose
2016-03-03 18:03:02 -05:00
Joel
b3aa373932
Update the profile task callback plugin to include a fix for duplicate named tasks. Added additional features to adjust the number of tasks output and the sort order.
2016-02-25 10:02:36 -06:00
Brian Coca
3e01516783
fixed signature for init on callbacks
...
also removed passing display to base class which already handles this
2015-12-01 14:06:54 -08:00
Brian Coca
c267c23020
make callbacks declare needing whitelisting
...
this will allow for custom or v1 callbacks locally loaded to automatically be triggered as they were in 1.x
2015-10-22 08:27:32 -04:00
Toshio Kuratomi
f34b55ac2b
Add python3-compat boilerplate to all .py files in lib/ansible
2015-10-19 18:36:19 -07:00
Brian Coca
6c8cf8acb7
now profile_tasks callback handles handlers correctly
...
fixes #12762
2015-10-16 18:01:27 -04:00
Brian Coca
9d4d7bd74d
fixed porting bugs in profile_tasks to v2
2015-09-11 16:48:09 -04:00
Gerard Lynch
a6c8d30f3e
callbacks require a version constant or the v2 code doesn't pass the display param and it gives an error
2015-07-17 15:33:48 +01:00
Brian Coca
a09f6236a5
adapated to v2
2015-07-17 08:55:22 -04:00
Tom Paine
097ed1f17b
Add plugin that profiles playbook tasks
...
Resubmission of https://github.com/ansible/ansible/pull/11270 to
correct v2 file location.
[Description and console output
demonstration](https://github.com/aioue/ansible-plugin-profile/blob/mast
er/README.md#features).
Provides per-task timing, ongoing playbook elapsed time and ordered
list of top 20 longest running tasks at end.
2015-07-17 13:04:31 +01:00