1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Adding dict() for json.dumps

This commit is contained in:
Nikhil Singh 2012-07-26 16:24:10 +05:30
parent 4c8d949642
commit dd9e09dee6

View file

@ -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):