Fix facter path
This commit is contained in:
parent
383403282f
commit
fb471fc0a8
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue