Fix pep8 warnings

Change-Id: I9f199dfa45885e51a925232fac54dabe7c844ed1
This commit is contained in:
Spencer Krum 2015-11-12 22:43:52 -08:00
parent fef11fbbdf
commit 854b97e9ea
1 changed files with 7 additions and 4 deletions

View File

@ -45,7 +45,9 @@ options:
default: None default: None
show_diff: show_diff:
description: description:
- Should puppet return diffs of changes applied. Defaults to off to avoid leaking secret changes by default. - >
Should puppet return diffs of changes applied. Defaults to off to
avoid leaking secret changes by default.
required: false required: false
default: no default: no
choices: [ "yes", "no" ] choices: [ "yes", "no" ]
@ -140,7 +142,8 @@ def main():
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)
elif rc != 0: elif rc != 0:
module.fail_json( module.fail_json(
msg="Puppet agent state could not be determined.") msg="Puppet agent state could not be determined.")
@ -156,8 +159,8 @@ def main():
if not p['manifest']: if not p['manifest']:
cmd = ("%(base_cmd)s agent --onetime" cmd = ("%(base_cmd)s agent --onetime"
" --ignorecache --no-daemonize --no-usecacheonfailure --no-splay" " --ignorecache --no-daemonize --no-usecacheonfailure"
" --detailed-exitcodes --verbose") % dict( "--no-splay --detailed-exitcodes --verbose") % dict(
base_cmd=base_cmd, base_cmd=base_cmd,
) )
if p['puppetmaster']: if p['puppetmaster']: