mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 16:01:55 +00:00
django_dumpdata, django_loaddata: new modules (#10726)
* django module, module_utils: adjustments
* more fixes
* more fixes
* further simplification
* django_dumpdata/django_loaddata: new modules
* Update plugins/modules/django_dumpdata.py
* add note about idempotency
---------
(cherry picked from commit d0123a1038)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
13 lines
505 B
Python
13 lines
505 B
Python
# Copyright (c) Alexei Znamensky (russoz@gmail.com)
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
from __future__ import (absolute_import, division, print_function)
|
|
__metaclass__ = type
|
|
|
|
|
|
from ansible_collections.community.general.plugins.modules import django_loaddata
|
|
from .uthelper import UTHelper, RunCommandMock
|
|
|
|
|
|
UTHelper.from_module(django_loaddata, __name__, mocks=[RunCommandMock])
|