|
@@ -5,22 +5,11 @@
|
|
|
Custom filters for use in openshift-ansible
|
|
|
'''
|
|
|
|
|
|
-import pdb
|
|
|
-
|
|
|
|
|
|
class FilterModule(object):
|
|
|
''' Custom ansible filters '''
|
|
|
|
|
|
@staticmethod
|
|
|
- def oo_pdb(arg):
|
|
|
- ''' This pops you into a pdb instance where arg is the data passed in
|
|
|
- from the filter.
|
|
|
- Ex: "{{ hostvars | oo_pdb }}"
|
|
|
- '''
|
|
|
- pdb.set_trace()
|
|
|
- return arg
|
|
|
-
|
|
|
- @staticmethod
|
|
|
def translate_volume_name(volumes, target_volume):
|
|
|
'''
|
|
|
This filter matches a device string /dev/sdX to /dev/xvdX
|