mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Re-allow templating of complex_args, but count params to prevent injection
Fixes #8810
This commit is contained in:
@@ -1268,6 +1268,12 @@ def list_difference(a, b):
|
||||
result.append(x)
|
||||
return result
|
||||
|
||||
def contains_vars(data):
|
||||
'''
|
||||
returns True if the data contains a variable pattern
|
||||
'''
|
||||
return "$" in data or "{{" in data
|
||||
|
||||
def safe_eval(expr, locals={}, include_exceptions=False):
|
||||
'''
|
||||
This is intended for allowing things like:
|
||||
|
||||
Reference in New Issue
Block a user