mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-15 17:40:50 -07:00
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:
parent
71819c0a60
commit
cb1e3dab0d
2 changed files with 15 additions and 0 deletions
|
@ -525,4 +525,7 @@ class FilterModule(object):
|
|||
# skip testing
|
||||
'skipped' : skipped,
|
||||
'skip' : skipped,
|
||||
|
||||
# debug
|
||||
'type': lambda o: o.__class__.__name__,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue