Commit a17ca862 by serenecloud

Return a friendly error message if aptitude isn't installed

parent d61a65ff
......@@ -286,6 +286,9 @@ def main():
global APT_GET_CMD
APT_GET_CMD = module.get_bin_path("apt-get")
if not APTITUDE_CMD:
module.fail_json(msg="Could not find aptitude. Please ensure it is installed.")
p = module.params
install_recommends = p['install_recommends']
......
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