From 626e8f3543bdc57738c2dc1f5af509f027d6bfcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20N=C3=A9ri?= Date: Thu, 19 Apr 2012 23:40:44 +0200 Subject: [PATCH] Fix two misspellings of the apt module's "fail_json" function --- library/apt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/apt b/library/apt index 90e4b17a1bd..81b40ea2a08 100755 --- a/library/apt +++ b/library/apt @@ -76,7 +76,7 @@ def install(pkgspec, cache, upgrade=False): cmd = "%s -q -y install '%s'" % (APT, pkgspec) rc, out, err = run_apt(cmd) 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 else: return False @@ -90,7 +90,7 @@ def remove(pkgspec, cache, purge=False): cmd = "%s -q -y %s remove '%s'" % (APT, purge, pkgspec) rc, out, err = run_apt(cmd) 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