1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-11 14:35:06 +00:00

[PR #10684/ded43714 backport][stable-11] django module, module_utils: adjustments (#10747)

django module, module_utils: adjustments (#10684)

* django module, module_utils: adjustments

* fix name

* more fixes

* more fixes

* further simplification

* add changelog frag

(cherry picked from commit ded43714d3)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2025-08-27 22:09:53 +02:00 committed by GitHub
parent dac26d12bd
commit 93782ffb35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 additions and 20 deletions

View file

@ -60,10 +60,13 @@ class DjangoCreateCacheTable(DjangoModuleHelper):
supports_check_mode=True,
)
django_admin_cmd = "createcachetable"
django_admin_arg_order = "noinput database dry_run"
_django_args = ["noinput", "database", "dry_run"]
django_admin_arg_order = "noinput database_dash dry_run"
_django_args = ["database_dash"]
_check_mode_arg = "dry_run"
def __init_module__(self):
self.vars.set("database_dash", self.vars.database, output=False)
def main():
DjangoCreateCacheTable.execute()