Merge pull request #88 from queeno/facter_should_return_puppet_custom_facts

Facter module should return custom facts
This commit is contained in:
Brian Coca 2015-02-11 17:32:57 -05:00
commit 5148a88e2c

View file

@ -45,7 +45,7 @@ def main():
argument_spec = dict() argument_spec = dict()
) )
cmd = ["/usr/bin/env", "facter", "--json"] cmd = ["/usr/bin/env", "facter", "--puppet", "--json"]
rc, out, err = module.run_command(cmd, check_rc=True) rc, out, err = module.run_command(cmd, check_rc=True)
module.exit_json(**json.loads(out)) module.exit_json(**json.loads(out))