1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix #19189 django_manage bug with python3 filter() returning iterator insted of list

This commit is contained in:
Serhiy Martynenko 2016-12-11 11:51:17 -02:00 committed by Toshio Kuratomi
parent 15e12d2cf2
commit c7637992fe

View file

@ -288,7 +288,7 @@ def main():
lines = out.split('\n') lines = out.split('\n')
filt = globals().get(command + "_filter_output", None) filt = globals().get(command + "_filter_output", None)
if filt: if filt:
filtered_output = filter(filt, lines) filtered_output = list(filter(filt, lines))
if len(filtered_output): if len(filtered_output):
changed = filtered_output changed = filtered_output