From be05dcdbfbb5013e9dbf9b3dea0c515adb260c9b Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Fri, 26 Oct 2018 00:19:13 +0200 Subject: [PATCH] Backport/2.7/46157 (#47558) * Changed django_manage to return changed as boolean consistently (#46157) (cherry picked from commit ecdcb6a09f05795d16720ca45adc0c3f168fa0c3) * Added changelog for previous change. --- changelogs/fragments/django_manage_status.yaml | 2 ++ lib/ansible/modules/web_infrastructure/django_manage.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/django_manage_status.yaml diff --git a/changelogs/fragments/django_manage_status.yaml b/changelogs/fragments/django_manage_status.yaml new file mode 100644 index 00000000000..3c761f54be2 --- /dev/null +++ b/changelogs/fragments/django_manage_status.yaml @@ -0,0 +1,2 @@ +bugfixes: + - django_manage - Changed the return type of the changed variable to bool. diff --git a/lib/ansible/modules/web_infrastructure/django_manage.py b/lib/ansible/modules/web_infrastructure/django_manage.py index c96a0499539..89195a2e860 100644 --- a/lib/ansible/modules/web_infrastructure/django_manage.py +++ b/lib/ansible/modules/web_infrastructure/django_manage.py @@ -301,7 +301,7 @@ def main(): if filt: filtered_output = list(filter(filt, lines)) if len(filtered_output): - changed = filtered_output + changed = True module.exit_json(changed=changed, out=out, cmd=cmd, app_path=app_path, virtualenv=virtualenv, settings=module.params['settings'], pythonpath=module.params['pythonpath'])