Is there a way to call a filter_plugin from within a custom module?
For example, I've written a simple filter_plugin utils.py that contains a
'to_bytes' function. This filter is used from my play like: "*debug:
msg="{{'25GB'|to_bytes}}"*".
I need to call the same function from within one of my custom modules where
I'm allocating a virtual disk in a xen server.
Rather than have two copies of the same to_bytes function, I wonder if it's
possible to call this filter_plugin from within my module?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/c519abb3-adaf-4426-b496-b1d968ded4f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.