Commit 14c2e8de by Michael DeHaan

Fix invalid usage or fail_json in apt module

parent 3017dc92
...@@ -133,7 +133,7 @@ def main(): ...@@ -133,7 +133,7 @@ def main():
import apt import apt
import apt_pkg import apt_pkg
except: except:
module.fail_json("Could not import python modules: apt, apt_pkg. Please install python-apt package.") module.fail_json(msg="Could not import python modules: apt, apt_pkg. Please install python-apt package.")
if not os.path.exists(APT_PATH): if not os.path.exists(APT_PATH):
module.fail_json(msg="Cannot find apt-get") module.fail_json(msg="Cannot find apt-get")
......
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