Merge pull request #972 from caphrim007/include-apt-debfile-after-installing-python-apt
Add missing import of apt.debfile
This commit is contained in:
commit
bad542025d
1 changed files with 1 additions and 0 deletions
|
@ -523,6 +523,7 @@ def main():
|
|||
module.run_command('apt-get update && apt-get install python-apt -y -q', use_unsafe_shell=True, check_rc=True)
|
||||
global apt, apt_pkg
|
||||
import apt
|
||||
import apt.debfile
|
||||
import apt_pkg
|
||||
except ImportError:
|
||||
module.fail_json(msg="Could not import python modules: apt, apt_pkg. Please install python-apt package.")
|
||||
|
|
Loading…
Reference in a new issue