From 67d1169674c2101627d624be35fcea9ad278c6c5 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 26 Apr 2012 23:18:29 -0400 Subject: [PATCH] fix code handling if module_vars is None --- lib/ansible/runner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py index 8982905bf8..559465996f 100644 --- a/lib/ansible/runner.py +++ b/lib/ansible/runner.py @@ -122,6 +122,9 @@ class Runner(object): else: self.inventory = inventory + if module_vars is None: + module_vars = {} + self.setup_cache = setup_cache self.conditional = conditional self.module_path = module_path