Address #4285 remove redundant stderr output in apt module
This commit is contained in:
parent
99c0e183ae
commit
548a48b2f6
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ def upgrade(m, mode="yes", force=False,
|
||||||
force_yes, check_arg, upgrade_command)
|
force_yes, check_arg, upgrade_command)
|
||||||
rc, out, err = m.run_command(cmd)
|
rc, out, err = m.run_command(cmd)
|
||||||
if rc:
|
if rc:
|
||||||
m.fail_json(msg="'%s %s' failed: %s" % (apt_cmd, upgrade_command, err), stdout=out, stderr=err)
|
m.fail_json(msg="'%s %s' failed: %s" % (apt_cmd, upgrade_command, err), stdout=out)
|
||||||
if (apt_cmd == APT_GET_CMD and APT_GET_ZERO in out) or (apt_cmd == APTITUDE_CMD and APTITUDE_ZERO in out):
|
if (apt_cmd == APT_GET_CMD and APT_GET_ZERO in out) or (apt_cmd == APTITUDE_CMD and APTITUDE_ZERO in out):
|
||||||
m.exit_json(changed=False, msg=out, stdout=out, stderr=err)
|
m.exit_json(changed=False, msg=out, stdout=out, stderr=err)
|
||||||
m.exit_json(changed=True, msg=out, stdout=out, stderr=err)
|
m.exit_json(changed=True, msg=out, stdout=out, stderr=err)
|
||||||
|
|
Loading…
Reference in a new issue