From c7637992fe957a5ebcc6059d99d8bad873a8d8ba Mon Sep 17 00:00:00 2001 From: Serhiy Martynenko Date: Sun, 11 Dec 2016 11:51:17 -0200 Subject: [PATCH] Fix #19189 django_manage bug with python3 filter() returning iterator insted of list --- lib/ansible/modules/web_infrastructure/django_manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/web_infrastructure/django_manage.py b/lib/ansible/modules/web_infrastructure/django_manage.py index efd32a33a1..ed1d532858 100644 --- a/lib/ansible/modules/web_infrastructure/django_manage.py +++ b/lib/ansible/modules/web_infrastructure/django_manage.py @@ -288,7 +288,7 @@ def main(): lines = out.split('\n') filt = globals().get(command + "_filter_output", None) if filt: - filtered_output = filter(filt, lines) + filtered_output = list(filter(filt, lines)) if len(filtered_output): changed = filtered_output