1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

EOS new ModuleStub

As per #16575
This commit is contained in:
Nathaniel Case 2016-07-07 16:06:31 -04:00
parent b4d36f6ed4
commit af5fba759f

View file

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