Permalink
Browse files

Arguments to setup module should be json.

  • Loading branch information...
1 parent 404c3ac commit 4f70245eb61b6c23bd0f342888dea4e85ca3ce3a @jhoekx jhoekx committed May 15, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/ansible/runner.py
View
@@ -275,6 +275,8 @@ def _execute_module(self, conn, tmp, remote_module_path, args,
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)

0 comments on commit 4f70245

Please sign in to comment.