Commit 460bbfae by Brian Coca

added union filter

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
parent afe30a66
......@@ -132,6 +132,9 @@ def difference(a, b):
def symetric_difference(a, b):
return set(a).symetric_difference(b)
def union(a, b):
return set(a).union(b)
class FilterModule(object):
''' Ansible core jinja2 filters '''
......@@ -191,5 +194,6 @@ class FilterModule(object):
'intersect': intersect,
'difference': difference,
'symetric_difference': symetric_difference,
'union': union,
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment