fix: Shortcut redirect.

This commit is contained in:
2022-12-11 00:39:24 +01:00
parent 62c4a47e86
commit c0c2960e17
3 changed files with 17 additions and 3 deletions

View File

@@ -1,9 +1,13 @@
from functools import partial
from ansible.utils.unicode import unicode_wrap
def abspath(fname):
return os.path.abspath(fname)
class FilterModule(object):
''' Ansible file jinja2 filters '''
def filters(self):
return {
'abspath': partial(unicode_wrap, os.path.abspath)
filters = {
'abspath': abspath
}
return filters