fix: Shortcut redirect.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user