Backport/2.7/46157 (#47558)

* Changed django_manage to return changed as boolean consistently (#46157)


(cherry picked from commit ecdcb6a09f)

* Added changelog for previous change.
This commit is contained in:
Florian Apolloner 2018-10-26 00:19:13 +02:00 committed by Toshio Kuratomi
parent b5c69b83ca
commit be05dcdbfb
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- django_manage - Changed the return type of the changed variable to bool.

View file

@ -301,7 +301,7 @@ def main():
if filt: if filt:
filtered_output = list(filter(filt, lines)) filtered_output = list(filter(filt, lines))
if len(filtered_output): if len(filtered_output):
changed = filtered_output changed = True
module.exit_json(changed=changed, out=out, cmd=cmd, app_path=app_path, virtualenv=virtualenv, module.exit_json(changed=changed, out=out, cmd=cmd, app_path=app_path, virtualenv=virtualenv,
settings=module.params['settings'], pythonpath=module.params['pythonpath']) settings=module.params['settings'], pythonpath=module.params['pythonpath'])