summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Roth <robin@rroth.de>2018-06-25 20:02:38 +0200
committerToshio Kuratomi <a.badger@gmail.com>2019-03-04 07:13:35 -0800
commit150edc460588c4a8cf7a96430bcf88ca9d0ef7e0 (patch)
tree9ef379efed3df16eae3ad1c9f9114cfb5c782b0c
parent8ac0f26b28166e491c9c95716459e9d225e03ed0 (diff)
downloadansible-150edc460588c4a8cf7a96430bcf88ca9d0ef7e0.tar.gz
Make zypper work with python3
(cherry picked from commit 24e94ec3c624fafb23c30ac6da0673769c63c5a8)
-rw-r--r--lib/ansible/modules/packaging/os/zypper.py2
1 files changed, 1 insertions, 1 deletions
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: