mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #4138 from resmo/fix/redundant-fail-json
apt: fixed duplicate fail_json
This commit is contained in:
commit
671eeb65b2
1 changed files with 0 additions and 1 deletions
|
@ -299,7 +299,6 @@ def upgrade(m, mode="yes", force=False):
|
|||
rc, out, err = m.run_command(cmd)
|
||||
if rc:
|
||||
m.fail_json(msg="'%s %s' failed: %s" % (apt_cmd, upgrade_command, err))
|
||||
m.fail_json(msg="'aptitude safe-upgrade' failed: %s" % err)
|
||||
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)
|
||||
m.exit_json(changed=True, msg=out)
|
||||
|
|
Loading…
Reference in a new issue