mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 14:39:26 -02:30
Merge pull request #378 from rmfitzpatrick/at6392_correct_deb_package_scan
Correct deb package scan typo
This commit is contained in:
@@ -74,7 +74,7 @@ def rpm_package_list():
|
|||||||
def deb_package_list():
|
def deb_package_list():
|
||||||
import apt
|
import apt
|
||||||
apt_cache = apt.Cache()
|
apt_cache = apt.Cache()
|
||||||
installed_packages = []
|
installed_packages = {}
|
||||||
apt_installed_packages = [pk for pk in apt_cache.keys() if apt_cache[pk].is_installed]
|
apt_installed_packages = [pk for pk in apt_cache.keys() if apt_cache[pk].is_installed]
|
||||||
for package in apt_installed_packages:
|
for package in apt_installed_packages:
|
||||||
ac_pkg = apt_cache[package].installed
|
ac_pkg = apt_cache[package].installed
|
||||||
|
|||||||
Reference in New Issue
Block a user