You've already forked role-check-mk-agent
Reslash ansible filter. (Reverse Slash)
This commit is contained in:
11
filter_plugins/reslash.py
Normal file
11
filter_plugins/reslash.py
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
def filter_reslash(val):
|
||||
return val.replace('\\', '/')
|
||||
|
||||
class FilterModule(object):
|
||||
filter_map = {
|
||||
'reslash': filter_reslash
|
||||
}
|
||||
|
||||
def filters(self):
|
||||
return self.filter_map
|
||||
Reference in New Issue
Block a user