Return a friendly error message if aptitude isn't installed

reviewable/pr18780/r1
serenecloud 11 years ago
parent 94d1a2542e
commit e6601b669e

@ -286,6 +286,9 @@ def main():
global APT_GET_CMD global APT_GET_CMD
APT_GET_CMD = module.get_bin_path("apt-get") 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 p = module.params
install_recommends = p['install_recommends'] install_recommends = p['install_recommends']

Loading…
Cancel
Save