Fix facter path

pull/18777/head
Ton Kersten 9 years ago committed by Matt Clay
parent 383403282f
commit fb471fc0a8

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

Loading…
Cancel
Save