Let called functions use method keyword (#43086)

Hopefully we can live without `method_` instead
This commit is contained in:
Nathaniel Case 2018-07-22 15:26:44 -04:00 committed by GitHub
commit 8c620a17d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -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: