mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
prevent using undefined variable
This commit is contained in:
parent
31abdc7ace
commit
b7b6367ad5
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ def install_deb(m, debs, cache, force, install_recommends, dpkg_options):
|
||||||
try:
|
try:
|
||||||
pkg = apt.debfile.DebPackage(deb_file)
|
pkg = apt.debfile.DebPackage(deb_file)
|
||||||
except SystemError, e:
|
except SystemError, e:
|
||||||
m.fail_json(msg="Error: %s\nSystem Error: %s" % (pkg._failure_string,str(e)))
|
m.fail_json(msg="System Error: %s" % str(e))
|
||||||
|
|
||||||
# Check if it's already installed
|
# Check if it's already installed
|
||||||
if pkg.compare_to_version_in_cache() == pkg.VERSION_SAME:
|
if pkg.compare_to_version_in_cache() == pkg.VERSION_SAME:
|
||||||
|
|
Loading…
Reference in a new issue