Fix invalid usage or fail_json in apt module
This commit is contained in:
parent
20d90d4c00
commit
e87697d602
1 changed files with 1 additions and 1 deletions
2
apt
2
apt
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue