diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2016-07-08 12:11:22 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2016-07-08 12:11:22 -0400 |
commit | 7657f75f757088eb8ba7caab4f6722d81a058523 (patch) | |
tree | 98b4485c6e699e107f78de9d99b2260975a29142 | |
parent | 7f28bcacaaf7feec76699e6fa99b84b916951bcc (diff) | |
download | ansible-7657f75f757088eb8ba7caab4f6722d81a058523.tar.gz |
removed defined/undefined as jinja2 already has em
-rw-r--r-- | lib/ansible/plugins/test/core.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/ansible/plugins/test/core.py b/lib/ansible/plugins/test/core.py index 1947fc13b8..93b65b9481 100644 --- a/lib/ansible/plugins/test/core.py +++ b/lib/ansible/plugins/test/core.py @@ -84,15 +84,6 @@ def search(value, pattern='', ignorecase=False, multiline=False): ''' Perform a `re.search` returning a boolean ''' return regex(value, pattern, ignorecase, multiline, 'search') -def undefined(a): - ''' Test if a variable is undefined ''' - from jinja2.runtime import Undefined - return isinstance(a, Undefined) - -def defined(a): - ''' Test if a variable is defined ''' - return not undefined(a) - class TestModule(object): ''' Ansible core jinja2 tests ''' @@ -117,7 +108,4 @@ class TestModule(object): 'search': search, 'regex': regex, - # variable testing - 'undefined': undefined, - 'defined': defined, } |