mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-25 16:06:43 +00:00
Adding dict() for json.dumps
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user