mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Remove stderr=False from calls to exit_json. (#2879)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user