From b7b6367ad591f9bd9ba1c2197b779bbb37187c8e Mon Sep 17 00:00:00 2001 From: bugchecker Date: Sun, 5 Apr 2015 20:40:11 +0500 Subject: [PATCH] prevent using undefined variable --- lib/ansible/modules/packaging/os/apt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/apt.py b/lib/ansible/modules/packaging/os/apt.py index 98fe79d624..c086cdc332 100644 --- a/lib/ansible/modules/packaging/os/apt.py +++ b/lib/ansible/modules/packaging/os/apt.py @@ -366,7 +366,7 @@ def install_deb(m, debs, cache, force, install_recommends, dpkg_options): try: pkg = apt.debfile.DebPackage(deb_file) 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 if pkg.compare_to_version_in_cache() == pkg.VERSION_SAME: