mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
b4d36f6ed4
commit
af5fba759f
1 changed files with 4 additions and 5 deletions
|
@ -19,9 +19,9 @@
|
|||
|
||||
import re
|
||||
|
||||
from ansible.module_utils.basic import json, get_exception, AnsibleModule
|
||||
from ansible.module_utils.network import Command, NetCli, NetworkError, get_module
|
||||
from ansible.module_utils.network import add_argument, register_transport, to_list
|
||||
from ansible.module_utils.basic import json, get_exception
|
||||
from ansible.module_utils.network import Command, ModuleStub, NetCli, NetworkError
|
||||
from ansible.module_utils.network import add_argument, get_module, register_transport, to_list
|
||||
from ansible.module_utils.netcfg import NetworkConfig
|
||||
from ansible.module_utils.urls import fetch_url, url_argument_spec
|
||||
|
||||
|
@ -200,8 +200,7 @@ class Eapi(EosConfigMixin):
|
|||
|
||||
def __init__(self):
|
||||
self.url = None
|
||||
self.url_args = AnsibleModule(url_argument_spec())
|
||||
self.url_args.fail_json = self._error
|
||||
self.url_args = ModuleStub(url_argument_spec(), self._error)
|
||||
self.enable = None
|
||||
self.default_output = 'json'
|
||||
self._connected = False
|
||||
|
|
Loading…
Reference in a new issue