mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-22 18:31:25 -07:00
[PR #8944/a7d1b0fc backport][stable-9] python_runner/django_command: bugfixes (#8946)
python_runner/django_command: bugfixes (#8944)
* python_runner/django_command: bugfixes
* fix indentation
* join path_prefix with : when concatenating with PATH
* add changelog frag
(cherry picked from commit a7d1b0fc52
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
43772cfbbb
commit
55d44975dd
12 changed files with 349 additions and 2 deletions
|
@ -57,6 +57,8 @@ run_info:
|
|||
returned: success and O(verbosity) >= 3
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
from ansible_collections.community.general.plugins.module_utils.django import DjangoModuleHelper
|
||||
from ansible_collections.community.general.plugins.module_utils.cmd_runner import cmd_runner_fmt
|
||||
|
||||
|
@ -74,6 +76,9 @@ class DjangoCommand(DjangoModuleHelper):
|
|||
)
|
||||
django_admin_arg_order = "extra_args"
|
||||
|
||||
def __init_module__(self):
|
||||
self.vars.command = shlex.split(self.vars.command)
|
||||
|
||||
|
||||
def main():
|
||||
DjangoCommand.execute()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue