Fix invalid usage or fail_json in apt module
This commit is contained in:
parent
3017dc92d9
commit
14c2e8de0c
1 changed files with 1 additions and 1 deletions
|
@ -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