From 3149fdf15895711fedcaa29e750a0c5aa78d6f0a Mon Sep 17 00:00:00 2001 From: Vytis Banaitis Date: Tue, 30 Aug 2016 13:25:46 +0300 Subject: [PATCH] Fix change status on django_manage collectstatic. (#4239) Ignore blank lines in collectstatic output. --- 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 5467346505f..3ce815dc582 100644 --- a/lib/ansible/modules/web_infrastructure/django_manage.py +++ b/lib/ansible/modules/web_infrastructure/django_manage.py @@ -167,7 +167,7 @@ def migrate_filter_output(line): return ("Migrating forwards " in line) or ("Installed" in line and "Installed 0 object" not in line) or ("Applying" in line) def collectstatic_filter_output(line): - return "0 static files" not in line + return line and "0 static files" not in line def main(): command_allowed_param_map = dict(