File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
roles/resource_module/filter_plugins Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -40,29 +40,6 @@ def dive(obj, result):
40
40
result [k ]['options' ] = dict ()
41
41
dive (suboptions , result [k ]['options' ])
42
42
43
- def pretty (value , htchar = '\t ' , lfchar = '\n ' , indent = 0 ):
44
- nlch = lfchar + htchar * (indent + 1 )
45
- if type (value ) is dict :
46
- items = [
47
- nlch + repr (key ) + ': ' + pretty (value [key ], htchar , lfchar , indent + 1 )
48
- for key in value
49
- ]
50
- return '{%s}' % (',' .join (items ) + lfchar + htchar * indent )
51
- elif type (value ) is list :
52
- items = [
53
- nlch + pretty (item , htchar , lfchar , indent + 1 )
54
- for item in value
55
- ]
56
- return '[%s]' % (',' .join (items ) + lfchar + htchar * indent )
57
- elif type (value ) is tuple :
58
- items = [
59
- nlch + pretty (item , htchar , lfchar , indent + 1 )
60
- for item in value
61
- ]
62
- return '(%s)' % (',' .join (items ) + lfchar + htchar * indent )
63
- else :
64
- return repr (value )
65
-
66
43
def to_argspec (spec ):
67
44
if 'DOCUMENTATION' not in spec :
68
45
raise AnsibleFilterError ("missing required element 'DOCUMENTATION'"
You can’t perform that action at this time.
0 commit comments