puppet: fix missing space between command and arg
Fixes: ~~~ { "cmd": "/usr/bin/puppetconfig print agent_disabled_lockfile", "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2 } ~~~
This commit is contained in:
parent
20b75901aa
commit
f91b75db2f
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ def main():
|
||||||
# Check if puppet is disabled here
|
# Check if puppet is disabled here
|
||||||
if p['puppetmaster']:
|
if p['puppetmaster']:
|
||||||
rc, stdout, stderr = module.run_command(
|
rc, stdout, stderr = module.run_command(
|
||||||
PUPPET_CMD + "config print agent_disabled_lockfile")
|
PUPPET_CMD + " config print agent_disabled_lockfile")
|
||||||
if os.path.exists(stdout.strip()):
|
if os.path.exists(stdout.strip()):
|
||||||
module.fail_json(
|
module.fail_json(
|
||||||
msg="Puppet agent is administratively disabled.", disabled=True)
|
msg="Puppet agent is administratively disabled.", disabled=True)
|
||||||
|
|
Loading…
Reference in a new issue