Fix invalid usage or fail_json in apt module

This commit is contained in:
Michael DeHaan 2012-08-18 19:43:45 -04:00
parent 20d90d4c00
commit e87697d602

2
apt
View file

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