From 150edc460588c4a8cf7a96430bcf88ca9d0ef7e0 Mon Sep 17 00:00:00 2001 From: Robin Roth Date: Mon, 25 Jun 2018 20:02:38 +0200 Subject: [PATCH] Make zypper work with python3 (cherry picked from commit 24e94ec3c624fafb23c30ac6da0673769c63c5a8) --- lib/ansible/modules/packaging/os/zypper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/zypper.py b/lib/ansible/modules/packaging/os/zypper.py index dacd35f7d6..2f08b4c719 100644 --- a/lib/ansible/modules/packaging/os/zypper.py +++ b/lib/ansible/modules/packaging/os/zypper.py @@ -488,7 +488,7 @@ def main(): update_cache = module.params['update_cache'] # remove empty strings from package list - name = filter(None, name) + name = list(filter(None, name)) # Refresh repositories if update_cache and not module.check_mode: