From d00e941a0ec5b4b3c2e6f40aac1978ac427e3a59 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 7 Sep 2016 15:40:17 -0700 Subject: [PATCH] Remove stderr=False from calls to exit_json. (#2879) --- lib/ansible/modules/extras/commands/expect.py | 2 -- lib/ansible/modules/extras/system/lvol.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/extras/commands/expect.py b/lib/ansible/modules/extras/commands/expect.py index a3d1b32d71..355f2cff48 100644 --- a/lib/ansible/modules/extras/commands/expect.py +++ b/lib/ansible/modules/extras/commands/expect.py @@ -167,7 +167,6 @@ def main(): cmd=args, stdout="skipped, since %s exists" % v, changed=False, - stderr=False, rc=0 ) @@ -181,7 +180,6 @@ def main(): cmd=args, stdout="skipped, since %s does not exist" % v, changed=False, - stderr=False, rc=0 ) diff --git a/lib/ansible/modules/extras/system/lvol.py b/lib/ansible/modules/extras/system/lvol.py index 817a4e66ea..978ce7d1c5 100644 --- a/lib/ansible/modules/extras/system/lvol.py +++ b/lib/ansible/modules/extras/system/lvol.py @@ -276,7 +276,7 @@ def main(): if rc != 0: 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: 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 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: module.fail_json(msg="Volume group %s does not exist." % vg, rc=rc, err=err)