From dd9e09dee69b5d033427afe9df9c4da016955b22 Mon Sep 17 00:00:00 2001 From: Nikhil Singh Date: Thu, 26 Jul 2012 16:24:10 +0530 Subject: [PATCH] Adding dict() for json.dumps --- library/apt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/apt b/library/apt index c6ecdb31086..480fa26280f 100755 --- a/library/apt +++ b/library/apt @@ -28,7 +28,7 @@ APT = "DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical %s" % APT_PATH try: import apt, apt_pkg except ImportError: - json.dumps(msg="could not import apt, please install the python-apt package on this host", failed=True) + json.dumps(dict(msg="could not import apt, please install the python-apt package on this host", failed=True)) sys.exit(1) def run_apt(command):