Add 'type' filter for display the underlying python type of a variable (#18242)

* Add 'type' filter for display the underlying python type of a variable

* Update playbooks_filters.rst

Minor copyedit.
This commit is contained in:
Matt Martz 2016-10-31 15:36:24 -05:00 committed by Toshio Kuratomi
parent 71819c0a60
commit cb1e3dab0d
2 changed files with 15 additions and 0 deletions

View file

@ -525,4 +525,7 @@ class FilterModule(object):
# skip testing
'skipped' : skipped,
'skip' : skipped,
# debug
'type': lambda o: o.__class__.__name__,
}