Facter module should return custom facts

The ansible facter module should also return puppet custom facts by
default.
reviewable/pr18780/r1
Simon Aquino 10 years ago
parent a0df36c6ab
commit 4dd6c8204a

@ -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))

Loading…
Cancel
Save