mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Backport typo fix from integration branch for apt module error path.
This commit is contained in:
parent
645e7afaa6
commit
86878be288
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ def install(pkgspec, cache, upgrade=False):
|
||||||
cmd = "%s -q -y install '%s'" % (APT, pkgspec)
|
cmd = "%s -q -y install '%s'" % (APT, pkgspec)
|
||||||
rc, out, err = run_apt(cmd)
|
rc, out, err = run_apt(cmd)
|
||||||
if rc:
|
if rc:
|
||||||
json_fail(msg="'apt-get install %s' failed: %s" % (pkgspec, err))
|
fail_json(msg="'apt-get install %s' failed: %s" % (pkgspec, err))
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
@ -90,7 +90,7 @@ def remove(pkgspec, cache, purge=False):
|
||||||
cmd = "%s -q -y %s remove '%s'" % (APT, purge, pkgspec)
|
cmd = "%s -q -y %s remove '%s'" % (APT, purge, pkgspec)
|
||||||
rc, out, err = run_apt(cmd)
|
rc, out, err = run_apt(cmd)
|
||||||
if rc:
|
if rc:
|
||||||
json_fail(msg="'apt-get remove %s' failed: %s" % (pkgspec, err))
|
fail_json(msg="'apt-get remove %s' failed: %s" % (pkgspec, err))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue