From 4f70245eb61b6c23bd0f342888dea4e85ca3ce3a Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Tue, 15 May 2012 17:43:01 +0200 Subject: [PATCH] Arguments to setup module should be json. --- lib/ansible/runner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py index 8dc5b784ea8..a9a0945feaa 100644 --- a/lib/ansible/runner.py +++ b/lib/ansible/runner.py @@ -275,6 +275,8 @@ class Runner(object): return [ utils.smjson(dict(skipped=True)), None, 'skipped' ] if self.module_name == 'setup': + if not args: + args = {} args = self._add_setup_vars(inject, args) args = self._add_setup_metadata(args)