File tree Expand file tree Collapse file tree 3 files changed +3
-28
lines changed
Expand file tree Collapse file tree 3 files changed +3
-28
lines changed Original file line number Diff line number Diff line change 1313# under the License.
1414
1515from ansible .plugins .action import ActionBase
16-
17- # TODO(dougszu): From Ansible 12 onwards we must explicitly trust templates.
18- # Since this feature is not supported in previous releases, we define a
19- # noop method here for backwards compatibility. This can be removed in the
20- # G cycle.
21- try :
22- from ansible .template import trust_as_template
23- except ImportError :
24- def trust_as_template (template ):
25- return template
16+ from ansible .template import trust_as_template
2617
2718
2819class ConfigError (Exception ):
Original file line number Diff line number Diff line change 2424
2525from ansible import constants
2626from ansible .plugins import action
27- # TODO(dougszu): From Ansible 12 onwards we must explicitly trust templates.
28- # Since this feature is not supported in previous releases, we define a
29- # noop method here for backwards compatibility. This can be removed in the
30- # G cycle.
31- try :
32- from ansible .template import trust_as_template
33- except ImportError :
34- def trust_as_template (template ):
35- return template
27+ from ansible .template import trust_as_template
3628
3729from io import StringIO
3830
Original file line number Diff line number Diff line change 2727from ansible import errors as ansible_errors
2828from ansible .plugins import action
2929
30- # TODO(dougszu): From Ansible 12 onwards we must explicitly trust templates.
31- # Since this feature is not supported in previous releases, we define a
32- # noop method here for backwards compatibility. This can be removed in the
33- # G cycle.
34- try :
35- from ansible .template import trust_as_template
36- except ImportError :
37- def trust_as_template (template ):
38- return template
30+ from ansible .template import trust_as_template
3931
4032DOCUMENTATION = '''
4133---
You can’t perform that action at this time.
0 commit comments