Skip to content

Commit 1518b43

Browse files
authored
django module utils: remove deprecated function arg ignore_value_none (#10574)
* django module utils: remove deprecated function arg ignore_value_none * fix argument order in call from _DjangoRunner to superclass * add changelog frag
1 parent 47ebde3 commit 1518b43

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- django module utils - remove deprecated parameter ``_DjangoRunner`` call (https://github.com/ansible-collections/community.general/pull/10574).

plugins/module_utils/django.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ def __init__(self, module, arg_formats=None, **kwargs):
5555

5656
super(_DjangoRunner, self).__init__(module, ["-m", "django"], arg_formats=arg_fmts, **kwargs)
5757

58-
def __call__(self, output_process=None, ignore_value_none=True, check_mode_skip=False, check_mode_return=None, **kwargs):
58+
def __call__(self, output_process=None, check_mode_skip=False, check_mode_return=None, **kwargs):
5959
args_order = (
6060
("command", "no_color", "settings", "pythonpath", "traceback", "verbosity", "skip_checks") + self._prepare_args_order(self.default_args_order)
6161
)
62-
return super(_DjangoRunner, self).__call__(args_order, output_process, ignore_value_none, check_mode_skip, check_mode_return, **kwargs)
62+
return super(_DjangoRunner, self).__call__(args_order, output_process, check_mode_skip=check_mode_skip, check_mode_return=check_mode_return, **kwargs)
6363

6464
def bare_context(self, *args, **kwargs):
6565
return super(_DjangoRunner, self).__call__(*args, **kwargs)

0 commit comments

Comments
 (0)