Commit 529a1949 by Michael DeHaan

Upgrade apt message if no python-apt to intercept potential user questions.

parent b9e3b053
......@@ -31,9 +31,7 @@ APT_PATH = "/usr/bin/apt-get"
APT = "DEBIAN_PRIORITY=critical %s" % APT_PATH
def debug(msg):
# ansible ignores stderr, so it's safe to use for debug
print >>sys.stderr, msg
#pass
def exit_json(rc=0, **kwargs):
print json.dumps(kwargs)
......@@ -46,7 +44,7 @@ def fail_json(**kwargs):
try:
import apt
except ImportError:
fail_json(msg="could not import apt")
fail_json(msg="could not import apt, please install the python-apt package on this host")
def run_apt(command):
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment