mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Remove cliconf from httpapi connection (#46813)
* Bare minimum rip out cliconf * nxapi changeover * Update documentation, move options * Memoize device_info * Gratuitous rename to underscore use of local api implementation Fixup eos module_utils like nxos * Streamline version and image scans * Expose get_capabilities through module_utils * Add load_config to module_utils * Support rpcs using both args and kwargs * Add get_config for nxos * Add get_diff * module context, pulled from nxapi We could probably do this correctly later * Fix eos issues * Limit connection._sub_plugin to only one plugin
This commit is contained in:
@@ -100,10 +100,7 @@ def exec_command(module, command):
|
||||
def request_builder(method_, *args, **kwargs):
|
||||
reqid = str(uuid.uuid4())
|
||||
req = {'jsonrpc': '2.0', 'method': method_, 'id': reqid}
|
||||
|
||||
params = args or kwargs or None
|
||||
if params:
|
||||
req['params'] = params
|
||||
req['params'] = (args, kwargs)
|
||||
|
||||
return req
|
||||
|
||||
|
||||
Reference in New Issue
Block a user