mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Let called functions use method
keyword (#43086)
Hopefully we can live without `method_` instead
This commit is contained in:
parent
64f5f9c2f9
commit
8c620a17d4
2 changed files with 2 additions and 3 deletions
|
@ -72,9 +72,9 @@ def exec_command(module, command):
|
||||||
return 0, out, ''
|
return 0, out, ''
|
||||||
|
|
||||||
|
|
||||||
def request_builder(method, *args, **kwargs):
|
def request_builder(method_, *args, **kwargs):
|
||||||
reqid = str(uuid.uuid4())
|
reqid = str(uuid.uuid4())
|
||||||
req = {'jsonrpc': '2.0', 'method': method, 'id': reqid}
|
req = {'jsonrpc': '2.0', 'method': method_, 'id': reqid}
|
||||||
|
|
||||||
params = args or kwargs or None
|
params = args or kwargs or None
|
||||||
if params:
|
if params:
|
||||||
|
|
|
@ -27,7 +27,6 @@ from ansible import constants as C
|
||||||
from ansible.plugins.action.normal import ActionModule as _ActionModule
|
from ansible.plugins.action.normal import ActionModule as _ActionModule
|
||||||
from ansible.module_utils.network.asa.asa import asa_provider_spec
|
from ansible.module_utils.network.asa.asa import asa_provider_spec
|
||||||
from ansible.module_utils.network.common.utils import load_provider
|
from ansible.module_utils.network.common.utils import load_provider
|
||||||
from ansible.module_utils.connection import request_builder
|
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue