From 2371bf9aaf7f02d6541f4dd84be2e5c6c3d1cf8f Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Mon, 11 Jun 2012 15:07:37 +0200 Subject: [PATCH] Fix on_unreachable invocation with non-existing variable --- 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 6519adb3ee8..25a83d64a92 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -671,7 +671,7 @@ class Runner(object): if not result.comm_ok: # connection or parsing errors... - self.callbacks.on_unreachable(host, data) + self.callbacks.on_unreachable(host, result.result) else: data = result.result if 'skipped' in data: