mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Let called functions use method keyword (#43086)
Hopefully we can live without `method_` instead
This commit is contained in:
@@ -72,9 +72,9 @@ def exec_command(module, command):
|
||||
return 0, out, ''
|
||||
|
||||
|
||||
def request_builder(method, *args, **kwargs):
|
||||
def request_builder(method_, *args, **kwargs):
|
||||
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
|
||||
if params:
|
||||
|
||||
Reference in New Issue
Block a user