mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Use repr on replacements for only_if
This commit is contained in:
committed by
Michael DeHaan
parent
489844f960
commit
d181a64315
@@ -317,7 +317,7 @@ class Runner(object):
|
||||
new_args = new_args + "%s='%s' " % (k,v)
|
||||
module_args = new_args
|
||||
|
||||
conditional = utils.template(self.basedir, self.conditional, inject)
|
||||
conditional = utils.template(self.basedir, self.conditional, inject, do_repr=True)
|
||||
if not utils.check_conditional(conditional):
|
||||
result = utils.jsonify(dict(skipped=True))
|
||||
self.callbacks.on_skipped(host, inject.get('item',None))
|
||||
|
||||
Reference in New Issue
Block a user