summaryrefslogtreecommitdiff
path: root/web_infrastructure/django_manage.py
diff options
context:
space:
mode:
authorJan Malte Gerth <JanMalte@users.noreply.github.com>2016-08-10 11:26:18 +0200
committerRené Moser <mail@renemoser.net>2016-08-10 11:26:18 +0200
commit6a78349f65fc71a901caf6862c1b05e926509c98 (patch)
tree7395e6d8bccdae7d298c44ac16eba75984f05d6d /web_infrastructure/django_manage.py
parent9dde201d87bb1c653659c02d240d2f397e9d4d66 (diff)
downloadansible-modules-core-6a78349f65fc71a901caf6862c1b05e926509c98.tar.gz
reuse already split output for filtering (#4310)
there is no need to call out.split('\n') multiple times (line 275 and 277)
Diffstat (limited to 'web_infrastructure/django_manage.py')
-rw-r--r--web_infrastructure/django_manage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_infrastructure/django_manage.py b/web_infrastructure/django_manage.py
index e1447d5d..54673465 100644
--- a/web_infrastructure/django_manage.py
+++ b/web_infrastructure/django_manage.py
@@ -274,7 +274,7 @@ def main():
lines = out.split('\n')
filt = globals().get(command + "_filter_output", None)
if filt:
- filtered_output = filter(filt, out.split('\n'))
+ filtered_output = filter(filt, lines)
if len(filtered_output):
changed = filtered_output