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:
parent
b5c69b83ca
commit
be05dcdbfb
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/django_manage_status.yaml
Normal file
2
changelogs/fragments/django_manage_status.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- django_manage - Changed the return type of the changed variable to bool.
|
|
@ -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'])
|
||||||
|
|
Loading…
Reference in a new issue