From 9449d62fb229f22db2f12f5c754e734536c9318c Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Tue, 17 Sep 2013 15:05:20 +0200 Subject: [PATCH] apt: fixed duplicate fail_json --- library/packaging/apt | 1 - 1 file changed, 1 deletion(-) diff --git a/library/packaging/apt b/library/packaging/apt index 94d2ad8f55..0ecadeb94d 100644 --- a/library/packaging/apt +++ b/library/packaging/apt @@ -285,7 +285,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)