Add support for optional arguments
This commit is contained in:
1 parent
64ac8f6e18
commit
be9f52a3e1
3 files changed
+17
-5
No files matched your search
+3
-1
@@ -34,7 +34,9 @@ def execute_get(device, cmd, separator=':', auto=False):
|
||||
|
||||
|
||||
class FortiOSDriver(NetworkDriver):
|
||||
def __init__(self, hostname, username, password, timeout=60):
|
||||
def __init__(self, hostname, username, password, timeout=60, optional_args=None):
|
||||
if optional_args is None:
|
||||
optional_args = {}
|
||||
self.hostname = hostname
|
||||
self.username = username
|
||||
self.password = password
|
||||
|
||||
Reference in new issue
Block a user