Remove stderr=False from calls to exit_json. (#2879)

pull/18777/head
Matt Clay 8 years ago
parent 7e36f4f302
commit d00e941a0e

@ -167,7 +167,6 @@ def main():
cmd=args, cmd=args,
stdout="skipped, since %s exists" % v, stdout="skipped, since %s exists" % v,
changed=False, changed=False,
stderr=False,
rc=0 rc=0
) )
@ -181,7 +180,6 @@ def main():
cmd=args, cmd=args,
stdout="skipped, since %s does not exist" % v, stdout="skipped, since %s does not exist" % v,
changed=False, changed=False,
stderr=False,
rc=0 rc=0
) )

@ -276,7 +276,7 @@ def main():
if rc != 0: if rc != 0:
if state == 'absent': if state == 'absent':
module.exit_json(changed=False, stdout="Volume group %s does not exist." % vg, stderr=False) module.exit_json(changed=False, stdout="Volume group %s does not exist." % vg)
else: else:
module.fail_json(msg="Volume group %s does not exist." % vg, rc=rc, err=err) module.fail_json(msg="Volume group %s does not exist." % vg, rc=rc, err=err)
@ -290,7 +290,7 @@ def main():
if rc != 0: if rc != 0:
if state == 'absent': if state == 'absent':
module.exit_json(changed=False, stdout="Volume group %s does not exist." % vg, stderr=False) module.exit_json(changed=False, stdout="Volume group %s does not exist." % vg)
else: else:
module.fail_json(msg="Volume group %s does not exist." % vg, rc=rc, err=err) module.fail_json(msg="Volume group %s does not exist." % vg, rc=rc, err=err)

Loading…
Cancel
Save