Skip to content

Commit

Permalink
Arguments to setup module should be json.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoekx committed May 15, 2012
1 parent 404c3ac commit 4f70245
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ansible/runner.py
Expand Up @@ -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)

Expand Down

0 comments on commit 4f70245

Please sign in to comment.