From 7044e53e072e06e1fcd39752dfaa2530438681db Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 25 Mar 2013 21:16:18 -0400 Subject: [PATCH] Allow conditionals on BYPASS_HOST_LOOP plugins like add_host --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 2ca710316af..3d1181a3c0d 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -420,7 +420,7 @@ class Runner(object): handler = utils.plugins.action_loader.get('async', self) conditional = utils.template(self.basedir, self.conditional, inject, expand_lists=False) - if not getattr(handler, 'BYPASS_HOST_LOOP', False) and not utils.check_conditional(conditional): + if not utils.check_conditional(conditional): result = utils.jsonify(dict(skipped=True)) self.callbacks.on_skipped(host, inject.get('item',None)) return ReturnData(host=host, result=result)