Add support for optional arguments

This commit is contained in:
Kirk Byers committed 2016-01-06 21:35:58 -08:00
1 parent 64ac8f6e18
commit be9f52a3e1
3 files changed
+17 -5

No files matched your search

+3 -1
View File
@@ -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