Adding dict() for json.dumps
This commit is contained in:
parent
096022acb2
commit
4d6b3713a7
1 changed files with 1 additions and 1 deletions
2
apt
2
apt
|
@ -28,7 +28,7 @@ APT = "DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical %s" % APT_PATH
|
||||||
try:
|
try:
|
||||||
import apt, apt_pkg
|
import apt, apt_pkg
|
||||||
except ImportError:
|
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)
|
sys.exit(1)
|
||||||
|
|
||||||
def run_apt(command):
|
def run_apt(command):
|
||||||
|
|
Loading…
Reference in a new issue