From 667ad2480e9364bdebea728c3212c0b8dfd13508 Mon Sep 17 00:00:00 2001 From: Stoned Elipot Date: Sat, 20 Jul 2013 23:39:25 +0200 Subject: [PATCH] Use AnsibleFilterError exception --- lib/ansible/runner/filter_plugins/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/runner/filter_plugins/core.py b/lib/ansible/runner/filter_plugins/core.py index 361e92f7c5..9ca81218fe 100644 --- a/lib/ansible/runner/filter_plugins/core.py +++ b/lib/ansible/runner/filter_plugins/core.py @@ -48,14 +48,14 @@ def success(*a, **kw): def skipped(*a, **kw): item = a[0] if type(item) != dict: - raise errors.AnsibleError("|skipped expects a dictionary") + raise errors.AnsibleFilterError("|skipped expects a dictionary") skipped = item.get('skipped', False) return skipped def mandatory(a): ''' Make a variable mandatory ''' if not a: - raise errors.AnsibleError('Mandatory variable not defined.') + raise errors.AnsibleFilterError('Mandatory variable not defined.') return a def bool(a):